summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-13 09:13:47 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-13 09:13:47 +0000
commit24c8da0b56c5961d948bf85d2a1b25dffd6f9c00 (patch)
treea1885cf4facfcb96fc04abe944d3f1a1db7b0c9b
parentcd2d62c690d68b3243f7619ec2c917a6936f3390 (diff)
downloadrockbox-24c8da0b56c5961d948bf85d2a1b25dffd6f9c00.tar.gz
rockbox-24c8da0b56c5961d948bf85d2a1b25dffd6f9c00.zip
remove put_cursorxy() which is not used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12296 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/menu.c38
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 */
326void 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 ******************************************************************/