diff options
-rw-r--r-- | apps/menu.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/apps/menu.c b/apps/menu.c index a084871e58..f1738e7284 100644 --- a/apps/menu.c +++ b/apps/menu.c | |||
@@ -322,44 +322,6 @@ void menu_draw(int m) | |||
322 | gui_synclist_draw(&(menus[m].synclist)); | 322 | gui_synclist_draw(&(menus[m].synclist)); |
323 | } | 323 | } |
324 | 324 | ||
325 | /* count in letter positions, NOT pixels */ | ||
326 | void put_cursorxy(int x, int y, bool on) | ||
327 | { | ||
328 | #ifdef HAVE_LCD_BITMAP | ||
329 | int fh, fw; | ||
330 | int xpos, ypos; | ||
331 | |||
332 | /* check here instead of at every call (ugly, but cheap) */ | ||
333 | if (global_settings.invert_cursor) | ||
334 | return; | ||
335 | |||
336 | lcd_getstringsize((unsigned char *)"A", &fw, &fh); | ||
337 | xpos = x*6; | ||
338 | ypos = y*fh + lcd_getymargin(); | ||
339 | if ( fh > 8 ) | ||
340 | ypos += (fh - 8) / 2; | ||
341 | #endif | ||
342 | |||
343 | /* place the cursor */ | ||
344 | if(on) { | ||
345 | #ifdef HAVE_LCD_BITMAP | ||
346 | lcd_mono_bitmap(bitmap_icons_6x8[Icon_Cursor], xpos, ypos, 4, 8); | ||
347 | #else | ||
348 | lcd_putc(x, y, CURSOR_CHAR); | ||
349 | #endif | ||
350 | } | ||
351 | else { | ||
352 | #if defined(HAVE_LCD_BITMAP) | ||
353 | /* I use xy here since it needs to disregard the margins */ | ||
354 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | ||
355 | lcd_fillrect (xpos, ypos, 4, 8); | ||
356 | lcd_set_drawmode(DRMODE_SOLID); | ||
357 | #else | ||
358 | lcd_putc(x, y, ' '); | ||
359 | #endif | ||
360 | } | ||
361 | } | ||
362 | |||
363 | /******************************************************************/ | 325 | /******************************************************************/ |
364 | /* New menu stuff here!! | 326 | /* New menu stuff here!! |
365 | ******************************************************************/ | 327 | ******************************************************************/ |