summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 023f6fb..b7bc542 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -92,8 +92,11 @@ void put_cursorxy(int x, int y, bool on)
#ifdef HAVE_LCD_BITMAP
int fh, fw;
int xpos, ypos;
+
+ /* check here instead of at every call (ugly, but cheap) */
if (global_settings.invert_cursor)
return;
+
lcd_getstringsize("A", &fw, &fh);
xpos = x*6;
ypos = y*fh + lcd_getymargin();