summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-01-28 23:12:20 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-01-28 23:12:20 +0000
commit281403a4d839924df41480fc020f401211a6e88b (patch)
treea9465e88b9f0c660f2080578d1839bd5f4d2ddc7 /apps/gui/gwps-common.c
parent5947e49f467cdf3cf5d2acfcc3c0bd6f97ab29f7 (diff)
downloadrockbox-281403a4d839924df41480fc020f401211a6e88b.tar.gz
rockbox-281403a4d839924df41480fc020f401211a6e88b.zip
Work-in-progress transparent bitmaps with 255,0,255 as the transparent color, not yet working on the H100 series
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8476 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index d15dbba888..b32deba479 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -219,7 +219,7 @@ bool wps_data_preload_tags(struct wps_data *data, char *buf,
219 data->img[n].bm.data = data->img_buf_ptr; 219 data->img[n].bm.data = data->img_buf_ptr;
220 ret = read_bmp_file(imgname, &data->img[n].bm, 220 ret = read_bmp_file(imgname, &data->img[n].bm,
221 data->img_buf_free, 221 data->img_buf_free,
222 FORMAT_ANY); 222 FORMAT_ANY|FORMAT_TRANSPARENT);
223 if (ret > 0) 223 if (ret > 0)
224 { 224 {
225 data->img_buf_ptr += ret; 225 data->img_buf_ptr += ret;
@@ -1252,9 +1252,10 @@ static void wps_draw_image(struct gui_wps *gwps, int n)
1252 data->img[n].bm.height); 1252 data->img[n].bm.height);
1253#if LCD_DEPTH > 1 1253#if LCD_DEPTH > 1
1254 } else { 1254 } else {
1255 display->bitmap((fb_data *)data->img[n].bm.data, data->img[n].x, 1255 display->transparent_bitmap((fb_data *)data->img[n].bm.data,
1256 data->img[n].y, data->img[n].bm.width, 1256 data->img[n].x,
1257 data->img[n].bm.height); 1257 data->img[n].y, data->img[n].bm.width,
1258 data->img[n].bm.height);
1258 } 1259 }
1259#endif 1260#endif
1260} 1261}