From c096e946a41b99a7f8add7992fe114c7f6d81585 Mon Sep 17 00:00:00 2001 From: Fred Date: Fri, 4 Dec 2020 20:49:04 +0100 Subject: [PATCH] Change GD77 display padding and font size --- openrtx/src/ui.c | 26 +++++++++++++------------- platform/targets/GD77/platform.c | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/openrtx/src/ui.c b/openrtx/src/ui.c index f9b0fd2f..6e6ec0e6 100644 --- a/openrtx/src/ui.c +++ b/openrtx/src/ui.c @@ -124,24 +124,24 @@ layout_t _ui_calculateLayout() #elif SCREEN_HEIGHT > 63 // Height and padding shown in diagram at beginning of file - const uint16_t top_h = 8; - const uint16_t top_pad = 0; - const uint16_t line1_h = 20; - const uint16_t line2_h = 20; - const uint16_t line3_h = 0; - const uint16_t line_pad = 2; + const uint16_t top_h = 13; + const uint16_t top_pad = 4; + const uint16_t line1_h = 15; + const uint16_t line2_h = 15; + const uint16_t line3_h = 15; + const uint16_t line_pad = 15; const uint16_t bottom_h = top_h; - const uint16_t bottom_pad = 0; + const uint16_t bottom_pad = 11; // Top bar font: 8 pt - const fontSize_t top_font = FONT_SIZE_1; + const fontSize_t top_font = FONT_SIZE_6PT; // Middle line fonts: 16, 16, 8 pt - const fontSize_t line1_font = FONT_SIZE_3; - const fontSize_t line2_font = FONT_SIZE_3; - const fontSize_t line3_font = FONT_SIZE_1; + const fontSize_t line1_font = FONT_SIZE_8PT; + const fontSize_t line2_font = FONT_SIZE_8PT; + const fontSize_t line3_font = FONT_SIZE_5PT; // Bottom bar font: 8 pt - const fontSize_t bottom_font = FONT_SIZE_1; - + const fontSize_t bottom_font = FONT_SIZE_6PT; + #elif SCREEN_HEIGHT > 47 // Height and padding shown in diagram at beginning of file diff --git a/platform/targets/GD77/platform.c b/platform/targets/GD77/platform.c index 182b1946..73ea952b 100644 --- a/platform/targets/GD77/platform.c +++ b/platform/targets/GD77/platform.c @@ -30,7 +30,7 @@ curTime_t rtc_getTime() t.hour = 12; t.minute = 12; t.second = 12; - t.year = 2020; + t.year = 20; t.day = 4; t.month = 12; t.date = 12;