diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-10-11 23:26:17 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-10-11 23:26:17 +0000 |
commit | fa0ea19d5a31946c08f44d1e3320ca5399ba51eb (patch) | |
tree | 05128c7228a8cc3a74830f0b38eb65563a8bb2f0 /apps/gui/color_picker.c | |
parent | dc708c32a4fcb88edf7c7bcc34098cb7088757e5 (diff) |
Fixed the problem with the backdrops on iPod. The same problem was in the updated color picker and that is fixed too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/color_picker.c')
-rw-r--r-- | apps/gui/color_picker.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c index 06653976a6..76c47fe376 100644 --- a/apps/gui/color_picker.c +++ b/apps/gui/color_picker.c @@ -72,14 +72,14 @@ static void unpack_rgb(struct rgb_pick *rgb) { unsigned color = rgb->color; #if LCD_PIXELFORMAT == RGB565SWAPPED - swap16(color); + color = swap16(color); #endif - rgb->r = (color & 0xf800) >> 11; - rgb->g = (color & 0x07e0) >> 5; - rgb->b = (color & 0x001f); rgb->red = _RGB_UNPACK_RED(color); rgb->green = _RGB_UNPACK_GREEN(color); rgb->blue = _RGB_UNPACK_BLUE(color); + rgb->r = (color & 0xf800) >> 11; + rgb->g = (color & 0x07e0) >> 5; + rgb->b = (color & 0x001f); } /* Packs the native rgb colors into a color value */ @@ -89,7 +89,7 @@ static void pack_rgb(struct rgb_pick *rgb) (rgb->g & 0x3f) << 5 | (rgb->b & 0x1f); #if LCD_PIXELFORMAT == RGB565SWAPPED - swap16(color); + color = swap16(color); #endif rgb->color = color; } |