comparison 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
comparison
equal deleted inserted replaced
109:65a6e352ce08 110:cc8e24374b83
78 INFOLOGwindow.WindowNumberOfTextLines = 6; 78 INFOLOGwindow.WindowNumberOfTextLines = 6;
79 INFOLOGwindow.WindowLineSpacing = 65; 79 INFOLOGwindow.WindowLineSpacing = 65;
80 INFOLOGwindow.WindowTab = 400; 80 INFOLOGwindow.WindowTab = 400;
81 INFOLOGwindow.WindowX0 = 20; 81 INFOLOGwindow.WindowX0 = 20;
82 INFOLOGwindow.WindowX1 = 779; 82 INFOLOGwindow.WindowX1 = 779;
83 INFOLOGwindow.WindowY0 = 4 + 25; 83 if(!settingsGetPointer()->FlipDisplay)
84 INFOLOGwindow.WindowY1 = 390 + 25; 84 {
85 INFOLOGwindow.WindowY0 = 4 + 25;
86 INFOLOGwindow.WindowY1 = 390 + 25;
87 }
88 else
89 {
90 INFOLOGwindow.WindowY0 = 479 - 390;
91 INFOLOGwindow.WindowY1 = 479 - 25;
92 }
85 } 93 }
86 94
87 95
88 void openInfoLogLastDive(void) 96 void openInfoLogLastDive(void)
89 { 97 {
207 { 215 {
208 if(infolog.modeFlipPages == 0) 216 if(infolog.modeFlipPages == 0)
209 { 217 {
210 infolog.line = 0; 218 infolog.line = 0;
211 infolog.modeFlipPages = 1; 219 infolog.modeFlipPages = 1;
212 GFX_SetFrameBottom(pMenuCursorDesignSolo->FBStartAdress, 0, 25, 800, 390); 220
221 if(!settingsGetPointer()->FlipDisplay)
222 {
223 GFX_SetFrameBottom(pMenuCursorDesignSolo->FBStartAdress, 0, 25, 800, 390);
224 }
225 else
226 {
227 GFX_SetFrameBottom(pMenuCursorDesignSolo->FBStartAdress, 0, 65, 800, 390);
228 }
229
213 } 230 }
214 else 231 else
215 exitLog(); 232 exitLog();
216 } 233 }
217 234
365 if(infolog.line > infolog.linesAvailableForPage) 382 if(infolog.line > infolog.linesAvailableForPage)
366 infolog.line = 1; 383 infolog.line = 1;
367 384
368 infolog.modeFlipPages = 0; 385 infolog.modeFlipPages = 0;
369 386
370 GFX_SetFrameBottom((pMenuCursor->FBStartAdress) + 65*2*(infolog.line - 1), 0, 25, 800, 390); 387 if(!settingsGetPointer()->FlipDisplay)
388 {
389 GFX_SetFrameBottom((pMenuCursor->FBStartAdress) + 65*2*(infolog.line - 1), 0, 25, 800, 390);
390 }
391 else
392 {
393 GFX_SetFrameBottom((pMenuCursor->FBStartAdress)+ (390 - 65 *(infolog.line)) *2, 0, 480-390-25, 800, 390);
394 }
371 } 395 }
372 396
373 397
374 void showLogExit(void) 398 void showLogExit(void)
375 { 399 {