Mercurial > public > ostc4
diff 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 |
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); }