Mercurial > public > ostc4
changeset 848:92a5dc16d52b Evo_2_23
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.
author | Ideenmodellierer |
---|---|
date | Thu, 15 Feb 2024 21:26:28 +0100 |
parents | 2ace67231c49 |
children | fce639612464 |
files | Discovery/Src/tInfo.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; }