Mercurial > public > ostc4
diff Discovery/Src/tInfoLog.c @ 110:cc8e24374b83 FlipDisplay
Added option to handled mirrored display to existing functions
author | Ideenmodellierer |
---|---|
date | Tue, 01 Jan 2019 21:02:17 +0100 |
parents | 5f11787b4f42 |
children | f11f0bf6ef2d |
line wrap: on
line diff
--- a/Discovery/Src/tInfoLog.c Tue Jan 01 21:00:55 2019 +0100 +++ b/Discovery/Src/tInfoLog.c Tue Jan 01 21:02:17 2019 +0100 @@ -80,8 +80,16 @@ INFOLOGwindow.WindowTab = 400; INFOLOGwindow.WindowX0 = 20; INFOLOGwindow.WindowX1 = 779; - INFOLOGwindow.WindowY0 = 4 + 25; - INFOLOGwindow.WindowY1 = 390 + 25; + if(!settingsGetPointer()->FlipDisplay) + { + INFOLOGwindow.WindowY0 = 4 + 25; + INFOLOGwindow.WindowY1 = 390 + 25; + } + else + { + INFOLOGwindow.WindowY0 = 479 - 390; + INFOLOGwindow.WindowY1 = 479 - 25; + } } @@ -209,7 +217,16 @@ { infolog.line = 0; infolog.modeFlipPages = 1; - GFX_SetFrameBottom(pMenuCursorDesignSolo->FBStartAdress, 0, 25, 800, 390); + + if(!settingsGetPointer()->FlipDisplay) + { + GFX_SetFrameBottom(pMenuCursorDesignSolo->FBStartAdress, 0, 25, 800, 390); + } + else + { + GFX_SetFrameBottom(pMenuCursorDesignSolo->FBStartAdress, 0, 65, 800, 390); + } + } else exitLog(); @@ -367,7 +384,14 @@ infolog.modeFlipPages = 0; - GFX_SetFrameBottom((pMenuCursor->FBStartAdress) + 65*2*(infolog.line - 1), 0, 25, 800, 390); + if(!settingsGetPointer()->FlipDisplay) + { + GFX_SetFrameBottom((pMenuCursor->FBStartAdress) + 65*2*(infolog.line - 1), 0, 25, 800, 390); + } + else + { + GFX_SetFrameBottom((pMenuCursor->FBStartAdress)+ (390 - 65 *(infolog.line)) *2, 0, 480-390-25, 800, 390); + } }