summaryrefslogtreecommitdiffstats
path: root/apps/gui/color_picker.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-04-16 09:14:36 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-04-16 09:14:36 +0000
commit6a5cc0bd25bd468c79e453fa49f353edd824141a (patch)
tree8b406e8390550ff8b87eae3214309867574657f0 /apps/gui/color_picker.c
parent7afe2e86931313653d4dedb6d5167c79c2822aba (diff)
downloadrockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.tar.gz
rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.zip
Customizable icons for all bitmap targets. (FS#7013)
http://www.rockbox.org/twiki/bin/view/Main/CustomIcons for info on format and how to load them git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/color_picker.c')
-rw-r--r--apps/gui/color_picker.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c
index 2d0dba1221..1739f3fd61 100644
--- a/apps/gui/color_picker.c
+++ b/apps/gui/color_picker.c
@@ -31,7 +31,7 @@
#include "lang.h"
#include "splash.h"
#include "action.h"
-#include "icons.h"
+#include "icon.h"
/* structure for color info */
struct rgb_pick
@@ -220,13 +220,11 @@ static void draw_screen(struct screen *display, char *title,
/* Draw "> <" around sliders */
int top = text_top + (display->char_height -
SELECTOR_HEIGHT) / 2;
- display->mono_bitmap(bitmap_icons_6x8[Icon_Cursor],
- MARGIN_LEFT, top,
- SELECTOR_WIDTH, SELECTOR_HEIGHT);
- display->mono_bitmap(bitmap_icons_6x8[Icon_Reverse_Cursor],
- display->width - MARGIN_RIGHT -
- SELECTOR_WIDTH, top, SELECTOR_WIDTH,
- SELECTOR_HEIGHT);
+ screen_put_iconxy(display, MARGIN_LEFT, top, Icon_Cursor);
+ screen_put_iconxy(display,
+ display->width - MARGIN_RIGHT -
+ get_icon_width(display->screen_type),
+ top, Icon_Cursor);
}
if (display->depth >= 16)