diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 09:14:36 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 09:14:36 +0000 |
commit | 6a5cc0bd25bd468c79e453fa49f353edd824141a (patch) | |
tree | 8b406e8390550ff8b87eae3214309867574657f0 /apps/gui/color_picker.c | |
parent | 7afe2e86931313653d4dedb6d5167c79c2822aba (diff) | |
download | rockbox-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.c | 14 |
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 @@ | |||
31 | #include "lang.h" | 31 | #include "lang.h" |
32 | #include "splash.h" | 32 | #include "splash.h" |
33 | #include "action.h" | 33 | #include "action.h" |
34 | #include "icons.h" | 34 | #include "icon.h" |
35 | 35 | ||
36 | /* structure for color info */ | 36 | /* structure for color info */ |
37 | struct rgb_pick | 37 | struct rgb_pick |
@@ -220,13 +220,11 @@ static void draw_screen(struct screen *display, char *title, | |||
220 | /* Draw "> <" around sliders */ | 220 | /* Draw "> <" around sliders */ |
221 | int top = text_top + (display->char_height - | 221 | int top = text_top + (display->char_height - |
222 | SELECTOR_HEIGHT) / 2; | 222 | SELECTOR_HEIGHT) / 2; |
223 | display->mono_bitmap(bitmap_icons_6x8[Icon_Cursor], | 223 | screen_put_iconxy(display, MARGIN_LEFT, top, Icon_Cursor); |
224 | MARGIN_LEFT, top, | 224 | screen_put_iconxy(display, |
225 | SELECTOR_WIDTH, SELECTOR_HEIGHT); | 225 | display->width - MARGIN_RIGHT - |
226 | display->mono_bitmap(bitmap_icons_6x8[Icon_Reverse_Cursor], | 226 | get_icon_width(display->screen_type), |
227 | display->width - MARGIN_RIGHT - | 227 | top, Icon_Cursor); |
228 | SELECTOR_WIDTH, top, SELECTOR_WIDTH, | ||
229 | SELECTOR_HEIGHT); | ||
230 | } | 228 | } |
231 | 229 | ||
232 | if (display->depth >= 16) | 230 | if (display->depth >= 16) |