# HG changeset patch # User Ideenmodellierer # Date 1708028788 -3600 # Node ID 92a5dc16d52b8a37cd2cae49489ccec74a3a5e59 # Parent 2ace67231c49eeae14b11a9ee8d576a0b9f80e9b Bugfix tInfo_write_content_simple flip: tInfo_write_content_simple did not consider the switched left <=> right positions in case the display is flipped causing text to be displayed at not intended positions. The fix does take care for exchange of left / right side information. diff -r 2ace67231c49 -r 92a5dc16d52b Discovery/Src/tInfo.c --- a/Discovery/Src/tInfo.c Sun Jan 21 22:26:37 2024 +0100 +++ b/Discovery/Src/tInfo.c Thu Feb 15 21:26:28 2024 +0100 @@ -312,13 +312,12 @@ hgfx.WindowNumberOfTextLines = 1; hgfx.WindowLineSpacing = 0; hgfx.WindowTab = 400; - hgfx.WindowX0 = XleftGimpStyle; - hgfx.WindowX1 = XrightGimpStyle; - hgfx.WindowY1 = 479 - YtopGimpStyle; - if(!settingsGetPointer()->FlipDisplay) { + hgfx.WindowX0 = XleftGimpStyle; + hgfx.WindowX1 = XrightGimpStyle; + hgfx.WindowY1 = 479 - YtopGimpStyle; if(hgfx.WindowY1 < Font->height) hgfx.WindowY0 = 0; @@ -327,6 +326,8 @@ } else { + hgfx.WindowX0 = 800 - XrightGimpStyle; + hgfx.WindowX1 = 800 - XleftGimpStyle; hgfx.WindowY0 = YtopGimpStyle; hgfx.WindowY1 = YtopGimpStyle + Font->height; }