changeset 122:871baf20776b FlipDisplay

Take care for display orientation if deleting lines
author Ideenmodellierer
date Sun, 13 Jan 2019 18:59:53 +0100
parents 0d97971b771b
children a984d87a1ec0
files Discovery/Src/tMenu.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/tMenu.c	Sun Jan 13 18:58:23 2019 +0100
+++ b/Discovery/Src/tMenu.c	Sun Jan 13 18:59:53 2019 +0100
@@ -240,7 +240,10 @@
 
     page = menu.pageMemoryForNavigation;
     line =  menu.lineMemoryForNavigationForPage[page];
-
+	if(settingsGetPointer()->FlipDisplay) /* Reselect line to be deleted if display is rotated */
+	{
+		line = 6 - line + 1;
+	}
     tMscreen.FBStartAdress = menu.StartAddressForPage[page];
     GFX_clean_line(&tMwindow, line);
 }