Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
psplash: Fix image byte order, add master copy of underlying logo image
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.o-hand.com/repos/misc/trunk/psplash@420 f5eea0f0-44ea-0310-b729-df5b855dafe5
  • Loading branch information
richard committed May 19, 2009
1 parent 82c22be commit d4c9812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added base-images/poky-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base-images/poky-logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions psplash-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ psplash_fb_draw_image (PSplashFB *fb,

do
{
if (*(p+3))
psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p+2), *(p+1), *(p));
if (img_bytes_per_pixel < 4 || *(p+3))
psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p), *(p+1), *(p+2));
if (++dx >= img_width) { dx=0; dy++; }
}
while (--len && (p - rle_data) < total_len);
Expand All @@ -336,8 +336,8 @@ psplash_fb_draw_image (PSplashFB *fb,

do
{
if (*(p+3))
psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p+2), *(p+1), *(p));
if (img_bytes_per_pixel < 4 || *(p+3))
psplash_fb_plot_pixel (fb, x+dx, y+dy, *(p), *(p+1), *(p+2));
if (++dx >= img_width) { dx=0; dy++; }
p += img_bytes_per_pixel;
}
Expand Down

0 comments on commit d4c9812

Please sign in to comment.