Skip to contentSkip to conversation

psplash: Trivial, cleanup some comments.

PATCH New Saul Wold 1 participant 2 messages Oct 24, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/2 psplash: Trivial, cleanup some comments.

From: Marc Ferland <[email protected]>

This patch fixes some minor comment mistakes.

---
 psplash-colors.h  |    2 +-
 psplash-console.c |    2 +-
 psplash-console.h |    2 +-
 psplash-fb.c      |    2 +-
 psplash-fb.h      |    2 +-
 psplash-write.c   |    2 +-
 psplash.c         |    4 ++--
 psplash.h         |    2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)
psplash-colors.h +1 -1
index d701089..d574afa 100644
@@ -1,5 +1,5 @@
 /*
- *  pslash - a lightweight framebuffer splashscreen for embedded devices.
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices.
  *
  *  Copyright (c) 2012 sleep(5) ltd
  *  Author: Tomas Frydrych <[email protected]>
psplash-console.c +1 -1
index 9b7dfb9..1ee49e6 100644
@@ -1,5 +1,5 @@
 /* 
- *  pslash - a lightweight framebuffer splashscreen for embedded devices. 
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices. 
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
psplash-console.h +1 -1
index c444d27..2cf7555 100644
@@ -1,5 +1,5 @@
 /* 
- *  pslash - a lightweight framebuffer splashscreen for embedded devices. 
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices. 
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
psplash-fb.c +1 -1
index 71740cd..72505b0 100644
@@ -1,5 +1,5 @@
 /*
- *  pslash - a lightweight framebuffer splashscreen for embedded devices.
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices.
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
psplash-fb.h +1 -1
index ef5b39e..244ab67 100644
@@ -1,5 +1,5 @@
 /* 
- *  pslash - a lightweight framebuffer splashscreen for embedded devices. 
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices. 
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
psplash-write.c +1 -1
index 3fdba95..1a81270 100644
@@ -1,5 +1,5 @@
 /* 
- *  pslash - a lightweight framebuffer splashscreen for embedded devices. 
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices. 
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
psplash.c +2 -2
index 09cf0d0..aa6568a 100644
@@ -1,5 +1,5 @@
 /* 
- *  pslash - a lightweight framebuffer splashscreen for embedded devices. 
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices. 
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
@@ -263,7 +263,7 @@ main (int argc, char** argv)
 	  goto fb_fail;
   }
 
-  /* Clear the background with #ecece1 */
+  /* Clear screen with background color */
   psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height,
                         PSPLASH_BACKGROUND_COLOR);
 
psplash.h +1 -1
index f78c117..9b60ce1 100644
@@ -1,5 +1,5 @@
 /* 
- *  pslash - a lightweight framebuffer splashscreen for embedded devices. 
+ *  psplash - a lightweight framebuffer splashscreen for embedded devices. 
  *
  *  Copyright (c) 2006 Matthew Allum <[email protected]>
  *
Signature · 1 line
1.7.7.6
author
#1 lore raw

PATCH 2/2 psplash: use correct blue offset value for BGR888

From: Aws Ismail <[email protected]>

Author: Aws Ismail <[email protected]>
Date:   Thu Aug 16 11:06:13 2012 -0400

Use correct blue offset value for BGR888

fs->blue_offset should be compared to 16 instead of 8 in order to detect BGR.

Credit goes to Ulrich Feichter <[email protected]> for detecting this.

---
 psplash-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
psplash-fb.c +1 -1
index 72505b0..1db4fde 100644
@@ -185,7 +185,7 @@ psplash_fb_new (int angle)
          fb->rgbmode = RGB888;
   } else if (fb->red_offset == 0 && fb->red_length == 8 &&
       fb->green_offset == 8 && fb->green_length == 8 &&
-      fb->blue_offset == 8 && fb->blue_length == 8) {
+      fb->blue_offset == 16 && fb->blue_length == 8) {
          fb->rgbmode = BGR888;
   } else {
          fb->rgbmode = GENERIC;
Signature · 1 line
1.7.7.6