diff options
Diffstat (limited to 'psplash-fb.c')
-rw-r--r-- | psplash-fb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/psplash-fb.c b/psplash-fb.c index 71b7f31..5671676 100644 --- a/psplash-fb.c +++ b/psplash-fb.c @@ -322,7 +322,8 @@ psplash_fb_draw_image (PSplashFB *fb, do { - psplash_fb_plot_pixel (fb, x+dx, y+dy, *p, *(p+1), *(p+2)); + if (*(p+3)) + psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p+2), *(p+1), *(p)); if (++dx >= img_width) { dx=0; dy++; } } while (--len && (p - rle_data) < total_len); @@ -335,7 +336,8 @@ psplash_fb_draw_image (PSplashFB *fb, do { - psplash_fb_plot_pixel (fb, x+dx, y+dy, *p, *(p+1), *(p+2)); + if (*(p+3)) + psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p+2), *(p+1), *(p)); if (++dx >= img_width) { dx=0; dy++; } p += img_bytes_per_pixel; } |