Mercurial > public > ostc4
comparison Discovery/Src/tInfo.c @ 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 | 17d9d6eddd8d |
| children | 65d35e66efb9 |
comparison
equal
deleted
inserted
replaced
| 846:2ace67231c49 | 848:92a5dc16d52b |
|---|---|
| 310 YtopGimpStyle = 479; | 310 YtopGimpStyle = 479; |
| 311 hgfx.Image = &tIscreen; | 311 hgfx.Image = &tIscreen; |
| 312 hgfx.WindowNumberOfTextLines = 1; | 312 hgfx.WindowNumberOfTextLines = 1; |
| 313 hgfx.WindowLineSpacing = 0; | 313 hgfx.WindowLineSpacing = 0; |
| 314 hgfx.WindowTab = 400; | 314 hgfx.WindowTab = 400; |
| 315 hgfx.WindowX0 = XleftGimpStyle; | |
| 316 hgfx.WindowX1 = XrightGimpStyle; | |
| 317 hgfx.WindowY1 = 479 - YtopGimpStyle; | |
| 318 | |
| 319 | 315 |
| 320 if(!settingsGetPointer()->FlipDisplay) | 316 if(!settingsGetPointer()->FlipDisplay) |
| 321 { | 317 { |
| 318 hgfx.WindowX0 = XleftGimpStyle; | |
| 319 hgfx.WindowX1 = XrightGimpStyle; | |
| 320 | |
| 322 hgfx.WindowY1 = 479 - YtopGimpStyle; | 321 hgfx.WindowY1 = 479 - YtopGimpStyle; |
| 323 if(hgfx.WindowY1 < Font->height) | 322 if(hgfx.WindowY1 < Font->height) |
| 324 hgfx.WindowY0 = 0; | 323 hgfx.WindowY0 = 0; |
| 325 else | 324 else |
| 326 hgfx.WindowY0 = hgfx.WindowY1 - Font->height; | 325 hgfx.WindowY0 = hgfx.WindowY1 - Font->height; |
| 327 } | 326 } |
| 328 else | 327 else |
| 329 { | 328 { |
| 329 hgfx.WindowX0 = 800 - XrightGimpStyle; | |
| 330 hgfx.WindowX1 = 800 - XleftGimpStyle; | |
| 330 hgfx.WindowY0 = YtopGimpStyle; | 331 hgfx.WindowY0 = YtopGimpStyle; |
| 331 hgfx.WindowY1 = YtopGimpStyle + Font->height; | 332 hgfx.WindowY1 = YtopGimpStyle + Font->height; |
| 332 } | 333 } |
| 333 | 334 |
| 334 GFX_write_string_color(Font, &hgfx, text, 0, color); | 335 GFX_write_string_color(Font, &hgfx, text, 0, color); |
