aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2009-05-25 10:47:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2009-05-25 10:47:37 +0000
commit0753fb8018809c671636adc9b3fb6af3ef8e2888 (patch)
tree4b24009bca0310e4477aa9bd8fe1ddb1ad276b22
parentc451df543380b1d5060d096045770d6bb2c71da6 (diff)
downloadpsplash-0753fb8018809c671636adc9b3fb6af3ef8e2888.tar.gz
psplash-0753fb8018809c671636adc9b3fb6af3ef8e2888.tar.bz2
psplash-0753fb8018809c671636adc9b3fb6af3ef8e2888.zip
psplash: really fix R&B bit swapping
-rw-r--r--psplash-fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psplash-fb.c b/psplash-fb.c
index a28c42e..6fdba6a 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
@@ -323,7 +323,7 @@ psplash_fb_draw_image (PSplashFB *fb,
do
{
if (img_bytes_per_pixel < 4 || *(p+3))
- psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p), *(p+1), *(p+2));
+ 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);
@@ -337,7 +337,7 @@ psplash_fb_draw_image (PSplashFB *fb,
do
{
if (img_bytes_per_pixel < 4 || *(p+3))
- psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p), *(p+1), *(p+2));
+ 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;
}