comparison Discovery/Src/tMenu.c @ 122:871baf20776b FlipDisplay

Take care for display orientation if deleting lines
author Ideenmodellierer
date Sun, 13 Jan 2019 18:59:53 +0100
parents cc8e24374b83
children b7689d9e888a
comparison
equal deleted inserted replaced
121:0d97971b771b 122:871baf20776b
238 { 238 {
239 uint8_t line, page; 239 uint8_t line, page;
240 240
241 page = menu.pageMemoryForNavigation; 241 page = menu.pageMemoryForNavigation;
242 line = menu.lineMemoryForNavigationForPage[page]; 242 line = menu.lineMemoryForNavigationForPage[page];
243 243 if(settingsGetPointer()->FlipDisplay) /* Reselect line to be deleted if display is rotated */
244 {
245 line = 6 - line + 1;
246 }
244 tMscreen.FBStartAdress = menu.StartAddressForPage[page]; 247 tMscreen.FBStartAdress = menu.StartAddressForPage[page];
245 GFX_clean_line(&tMwindow, line); 248 GFX_clean_line(&tMwindow, line);
246 } 249 }
247 250
248 251