39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
diff --git a/headergrid.c b/headergrid.c
|
|
index 1a5857d..e17ec05 100644
|
|
--- a/headergrid.c
|
|
+++ b/headergrid.c
|
|
@@ -128,7 +128,7 @@ void cHeaderGrid::SetPosition(int num) {
|
|
y = geoManager.statusHeaderHeight + geoManager.channelGroupsHeight;
|
|
width = geoManager.colWidth;
|
|
height = geoManager.channelHeaderHeight;
|
|
- } else if (config.displayMode == eHorizontal) {
|
|
+ } else { // as it's an enum with only two reasonable values
|
|
x = geoManager.channelGroupsWidth;
|
|
y = geoManager.statusHeaderHeight + geoManager.timeLineHeight + num*geoManager.rowHeight;
|
|
width = geoManager.channelHeaderWidth;
|
|
diff --git a/timeline.c b/timeline.c
|
|
index e6066aa..4fc62b9 100644
|
|
--- a/timeline.c
|
|
+++ b/timeline.c
|
|
@@ -118,7 +118,7 @@ void cTimeLine::DrawTimeline(void) {
|
|
int x = 2 * t->tm_hour + ((t->tm_min == 0) ? 0 : 1);
|
|
|
|
int textWidth, posX, posY;
|
|
- char timetext[10];
|
|
+ char timetext[20];
|
|
volatile int timetext_size = sizeof(timetext);
|
|
for (int j = x; j < (x + halfHours); j++) {
|
|
int i = (j >= 48) ? (j - 48) : j;
|
|
diff --git a/timemanager.c b/timemanager.c
|
|
index a3c1f4c..4cf42a7 100644
|
|
--- a/timemanager.c
|
|
+++ b/timemanager.c
|
|
@@ -100,7 +100,7 @@ cString cTimeManager::GetCurrentTime(void) {
|
|
}
|
|
|
|
cString cTimeManager::GetDate(void) {
|
|
- char text[6];
|
|
+ char text[20];
|
|
volatile int text_size = sizeof(text);
|
|
tm *st = localtime(&tStart);
|
|
snprintf(text, text_size, "%d.%d", st->tm_mday, st->tm_mon + 1);
|