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

Commit

Permalink
* psplash-fb.c:
Browse files Browse the repository at this point in the history
* psplash-poky-img.h:
* psplash.c
* Makefile.am:
Fix colour read order from RLE images (R & B swapped)
Add handling for alpha channel in images
Update the Poky RLE image
Change the OpenedHand logo for the Poky one



git-svn-id: http://svn.o-hand.com/repos/misc/trunk/psplash@419 f5eea0f0-44ea-0310-b729-df5b855dafe5
  • Loading branch information
richard committed May 19, 2009
1 parent 9f4ef3c commit 82c22be
Show file tree
Hide file tree
Showing 5 changed files with 1,039 additions and 528 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2009-05-19 Richard Purdie <[email protected]>

* psplash-fb.c:
* psplash-poky-img.h:
* psplash.c
* Makefile.am:
Fix colour read order from RLE images (R & B swapped)
Add handling for alpha channel in images
Update the Poky RLE image
Change the OpenedHand logo for the Poky one

2008-11-10 Samuel Ortiz <[email protected]>

* psplash.c:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ AM_CFLAGS = $(GCC_FLAGS) -D_GNU_SOURCE

psplash_SOURCES = psplash.c psplash.h psplash-fb.c psplash-fb.h \
psplash-console.c psplash-console.h \
psplash-hand-img.h psplash-bar-img.h radeon-font.h
psplash-poky-img.h psplash-bar-img.h radeon-font.h

psplash_write_SOURCES = psplash-write.c psplash.h

Expand Down
6 changes: 4 additions & 2 deletions psplash-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Expand Down
Loading

0 comments on commit 82c22be

Please sign in to comment.