From 60e7472f72567e6d7417931dc4cd8bf969868043 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 14 Jul 2007 09:19:46 +0000 Subject: [PATCH] Fix FS#7044 - if the color RGB(0,255,255) is in a bmp it will be replaced with the current foreground colour git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13878 a1c6a512-1295-4272-9138-f99709370657 --- apps/bitmaps/native/default_icons.6x8x16.bmp | Bin 5174 -> 5174 bytes .../viewer_defaults/viewers.6x8x16.bmp | Bin 2134 -> 2134 bytes firmware/drivers/lcd-16bit.c | 4 +++- firmware/export/lcd.h | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/bitmaps/native/default_icons.6x8x16.bmp b/apps/bitmaps/native/default_icons.6x8x16.bmp index 601c4f95a617434386b6c0fee4868e116f34ea30..8cc45c78550aa15cc93dea3b03b069063b5b32e9 100755 GIT binary patch literal 5174 zcmc(dO?KNb5QE)KmtA$yBlHA0K=-|M@0Egp0D%%^=g03Q&!L7NF$0*^pT93ZZ~S|~ z`Wye>$L`zs{2JBmhVy?v^e=F`z206AA2C56g0+gf*5R<2#BOMh&*&T>zOjKh{XKnT zof)?Lw62)T@x(uSSIoz)+a~Y#lkb}eh&P6&O9faIJ`}?aCo3lCd{%5!TdpqSYcS^S zqc@LduzeJ>JH_x@+^N*%yUKTBD~~V~oX6)zAFxfeWzD^ud<%?;!)X8M>>-gxvW8B( zTE+T+?*?b=vU_Y-jVTwIB`TZFV%*FD4vhG~*xu|k&tP=(t_n0mO@lD+gyqq_buZ~H z7O7d!BaW7Sn0&r z4xPsg$`dh`0$4S#*#ln(K})iPd0v5dh}r4TOMGBxIL+gbvyNFbx@@2eD_@s6j4tY$ z7j-cvQ+s-6Upw#JXy0C)W~gVZd14aUw;Asxy(=Bm{9v9M4MrDP0WmeynkWpPoI?gTvDG4 zn9q9mCS5zKzL&*{wwY_0f~D}hlkPN3V8+dSvSON!lS5IiJd6SdnlnW`FsZGpS);5` zDOpJ0>!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aults/viewers.6x8x16.bmp index 1760e66d43ab60b2954a9d35eccf6e564a24dd13..9b039b12174d40abc83ea28de1d36257bf8609ec 100644 GIT binary patch literal 2134 zcmd5)F;c`Z5Hk(K3>_6EB`@Fs^t8Nz|9>E-tSm*G<1m3MU=n++)k<=X_m9tqR)23; zU-91K{la_Kp0T#}g8tJZ-vY2KZMk}YT_MZL1IC65&g#Uz^#Y#EcD2pSvl|5Cfp!vO z5UqdIlgt{b>eOQsfh)7A!9(e%cs{AXtV$QwbLYr|0-#or`6O)*0V`QG_C9%h5Aw_A zr+k!*%ruBunRn-&z0+#Tdvv`2@9MP1);+9u7GqROmPqgC06J#UcyK zy)5Vm_T2;mrs-H`wQ literal 2134 zcmc&xK~BU#3>z*8i5n-59C-l`;Lepd@c$3&X5!lQWLnxvNL15I;y8}G`}y_#)bja= z_#W?Lyg%_iwAYBOy+!}!8E*m+ZtYeMJJSuGW^&f5E=4_uQ)ik@w1i^B^t{6zr!W{% zyfo_z(u-tJWfTcbVxls^NK|-ANqGA%h-m>}(?f@1;t?)Dlu4Ze8XhOg zCBT(-mxf~W${BwHP`DaYtEBLEJgRqVyZ+94PK~ap#8P6sm(5v5DCfKveSsxKEO%I2 V>3{KL;2?oNkeKuCD0ALN*d276(|-T} diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index f03cab3877..73e901f583 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c @@ -727,7 +727,9 @@ void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, int i; for(i = 0;i < width;i++) { - if(src[i] != TRANSPARENT_COLOR) + if (src[i] == REPLACEWITHFG_COLOR) + dst[i] = fg_pattern; + else if(src[i] != TRANSPARENT_COLOR) dst[i] = src[i]; } src += stride; diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 787eea01f5..d379dc3613 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -291,6 +291,7 @@ enum #define FORMAT_REMOTE 0x10000000 #define TRANSPARENT_COLOR LCD_RGBPACK(255,0,255) +#define REPLACEWITHFG_COLOR LCD_RGBPACK(0,255,255) struct bitmap { int width;