diff options
-rw-r--r-- | recipes/psplash/files/angstrom/psplash-poky-img.h (renamed from recipes/psplash/files/angstrom/psplash-hand-img.h) | 0 | ||||
-rw-r--r-- | recipes/psplash/files/boc01/psplash-poky-img.h (renamed from recipes/psplash/files/boc01/psplash-hand-img.h) | 0 | ||||
-rw-r--r-- | recipes/psplash/files/kaeilos/psplash-poky-img.h (renamed from recipes/psplash/files/kaeilos/psplash-hand-img.h) | 0 | ||||
-rw-r--r-- | recipes/psplash/files/logo-math.patch | 26 | ||||
-rw-r--r-- | recipes/psplash/files/openmoko/psplash-poky-img.h (renamed from recipes/psplash/files/openmoko/psplash-hand-img.h) | 0 | ||||
-rw-r--r-- | recipes/psplash/files/psplash-18bpp.patch | 73 | ||||
-rw-r--r-- | recipes/psplash/files/psplash-poky-img.h (renamed from recipes/psplash/files/psplash-hand-img.h) | 0 | ||||
-rw-r--r-- | recipes/psplash/psplash-angstrom_svn.bb | 8 | ||||
-rw-r--r-- | recipes/psplash/psplash-omap3pandora_svn.bb | 8 | ||||
-rw-r--r-- | recipes/psplash/psplash-openmoko_svn.bb | 8 | ||||
-rw-r--r-- | recipes/psplash/psplash.inc | 12 | ||||
-rw-r--r-- | recipes/psplash/psplash_svn.bb | 2 |
12 files changed, 78 insertions, 59 deletions
diff --git a/recipes/psplash/files/angstrom/psplash-hand-img.h b/recipes/psplash/files/angstrom/psplash-poky-img.h index 263befa564..263befa564 100644 --- a/recipes/psplash/files/angstrom/psplash-hand-img.h +++ b/recipes/psplash/files/angstrom/psplash-poky-img.h diff --git a/recipes/psplash/files/boc01/psplash-hand-img.h b/recipes/psplash/files/boc01/psplash-poky-img.h index 8c23e483d6..8c23e483d6 100644 --- a/recipes/psplash/files/boc01/psplash-hand-img.h +++ b/recipes/psplash/files/boc01/psplash-poky-img.h diff --git a/recipes/psplash/files/kaeilos/psplash-hand-img.h b/recipes/psplash/files/kaeilos/psplash-poky-img.h index d262d6cc17..d262d6cc17 100644 --- a/recipes/psplash/files/kaeilos/psplash-hand-img.h +++ b/recipes/psplash/files/kaeilos/psplash-poky-img.h diff --git a/recipes/psplash/files/logo-math.patch b/recipes/psplash/files/logo-math.patch index 21467af0ec..2ebfd7cd4c 100644 --- a/recipes/psplash/files/logo-math.patch +++ b/recipes/psplash/files/logo-math.patch @@ -1,15 +1,23 @@ upstream: http://bugzilla.openedhand.com/show_bug.cgi?id=801 comment: Do better math when showing logo vs progressbar. +--- + psplash.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) ---- psplash/psplash.c.org 2007-09-22 20:33:36.000000000 +0300 -+++ psplash/psplash.c 2007-12-01 21:27:08.000000000 +0200 -@@ -258,7 +258,7 @@ +diff --git a/psplash.c b/psplash.c +index 54a65cf..7a52e05 100644 +--- a/psplash.c ++++ b/psplash.c +@@ -269,7 +269,7 @@ main (int argc, char** argv) /* Draw the OH logo */ psplash_fb_draw_image (fb, - (fb->width - HAND_IMG_WIDTH)/2, -- (fb->height - HAND_IMG_HEIGHT)/2, -+ ((fb->height * 5) / 6 - HAND_IMG_HEIGHT)/2, - HAND_IMG_WIDTH, - HAND_IMG_HEIGHT, - HAND_IMG_BYTES_PER_PIXEL, + (fb->width - POKY_IMG_WIDTH)/2, +- (fb->height - POKY_IMG_HEIGHT)/2, ++ ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2, + POKY_IMG_WIDTH, + POKY_IMG_HEIGHT, + POKY_IMG_BYTES_PER_PIXEL, +-- +1.6.3.3 + diff --git a/recipes/psplash/files/openmoko/psplash-hand-img.h b/recipes/psplash/files/openmoko/psplash-poky-img.h index 26f7f41cb5..26f7f41cb5 100644 --- a/recipes/psplash/files/openmoko/psplash-hand-img.h +++ b/recipes/psplash/files/openmoko/psplash-poky-img.h diff --git a/recipes/psplash/files/psplash-18bpp.patch b/recipes/psplash/files/psplash-18bpp.patch index 5e582a44a3..36ab43bf78 100644 --- a/recipes/psplash/files/psplash-18bpp.patch +++ b/recipes/psplash/files/psplash-18bpp.patch @@ -1,9 +1,15 @@ upstream: http://bugzilla.o-hand.com/show_bug.cgi?id=1764 -diff -ru psplash/psplash-fb.c /home/muromec/psplash/psplash-fb.c ---- psplash/psplash-fb.c 2007-08-29 21:27:49.000000000 +0300 -+++ /home/muromec/psplash/psplash-fb.c 2009-08-16 11:59:57.000000000 +0300 -@@ -72,6 +72,7 @@ +--- + psplash-fb.c | 8 +++++++- + psplash-fb.h | 1 + + 2 files changed, 8 insertions(+), 1 deletions(-) + +diff --git a/psplash-fb.c b/psplash-fb.c +index 71740cd..860c0c0 100644 +--- a/psplash-fb.c ++++ b/psplash-fb.c +@@ -160,6 +160,7 @@ psplash_fb_new (int angle) fb->real_width = fb->width = fb_var.xres; fb->real_height = fb->height = fb_var.yres; fb->bpp = fb_var.bits_per_pixel; @@ -11,34 +17,39 @@ diff -ru psplash/psplash-fb.c /home/muromec/psplash/psplash-fb.c fb->stride = fb_fix.line_length; fb->type = fb_fix.type; fb->visual = fb_fix.visual; -@@ -176,7 +177,7 @@ - } - - /* FIXME: handle no RGB orderings */ -- switch (fb->bpp) -+ switch (fb->depth) - { - case 24: - case 32: -@@ -184,6 +185,10 @@ - *(fb->data + off + 1) = green; - *(fb->data + off + 2) = blue; - break; -+ case 18: -+ *(fb->data + off) = (red >> 2) | ((green & 0x0C) << 4); -+ *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((blue & 0x3C) << 2); -+ *(fb->data + off + 2) = (blue & 0xC0) >> 6; - case 16: - *(volatile uint16 *) (fb->data + off) - = ((red >> 3) << 11) | ((green >> 2) << 5) | (blue >> 3); -diff -ru psplash/psplash-fb.h /home/muromec/psplash/psplash-fb.h ---- psplash/psplash-fb.h 2007-08-29 21:27:49.000000000 +0300 -+++ /home/muromec/psplash/psplash-fb.h 2009-08-16 11:58:39.000000000 +0300 -@@ -26,6 +26,7 @@ - int visual; +@@ -308,7 +309,7 @@ psplash_fb_plot_pixel (PSplashFB *fb, + break; + } + } else if (fb->rgbmode == BGR565 || fb->rgbmode == BGR888) { +- switch (fb->bpp) ++ switch (fb->depth) + { + case 24: + case 32: +@@ -316,6 +317,11 @@ psplash_fb_plot_pixel (PSplashFB *fb, + *(fb->data + off + 1) = green; + *(fb->data + off + 2) = blue; + break; ++ case 18: ++ *(fb->data + off) = (red >> 2) | ((green & 0x0C) << 4); ++ *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((blue & 0x3C) << 2); ++ *(fb->data + off + 2) = (blue & 0xC0) >> 6; ++ break; + case 16: + *(volatile uint16_t *) (fb->data + off) + = ((blue >> 3) << 11) | ((green >> 2) << 5) | (red >> 3); +diff --git a/psplash-fb.h b/psplash-fb.h +index ef5b39e..160cdeb 100644 +--- a/psplash-fb.h ++++ b/psplash-fb.h +@@ -34,6 +34,7 @@ typedef struct PSplashFB + int visual; int width, height; int bpp; + int depth; int stride; - char *data; - char *base; + char *data; + char *base; +-- +1.6.3.3 + diff --git a/recipes/psplash/files/psplash-hand-img.h b/recipes/psplash/files/psplash-poky-img.h index c54f04c362..c54f04c362 100644 --- a/recipes/psplash/files/psplash-hand-img.h +++ b/recipes/psplash/files/psplash-poky-img.h diff --git a/recipes/psplash/psplash-angstrom_svn.bb b/recipes/psplash/psplash-angstrom_svn.bb index fc5e4c2a37..c610d87994 100644 --- a/recipes/psplash/psplash-angstrom_svn.bb +++ b/recipes/psplash/psplash-angstrom_svn.bb @@ -3,16 +3,16 @@ require psplash-ua.inc ALTERNATIVE_PRIORITY = "20" -# You can create your own pslash-hand-img.h by doing -# ./make-image-header.sh <file>.png HAND -# and rename the resulting .h to pslash-hand-img.h (for the logo) +# You can create your own pslash-poky-img.h by doing +# ./make-image-header.sh <file>.png POKY +# and rename the resulting .h to pslash-poky-img.h (for the logo) # respectively psplash-bar-img.h (BAR) for the bar. # You might also want to patch the colors (see patch) SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \ file://psplash-18bpp.patch;patch=1 \ file://logo-math.patch;patch=1 \ - file://psplash-hand-img.h \ + file://psplash-poky-img.h \ file://psplash-bar-img.h \ file://psplash-default \ file://splashfuncs \ diff --git a/recipes/psplash/psplash-omap3pandora_svn.bb b/recipes/psplash/psplash-omap3pandora_svn.bb index bc9e9f68dc..2e531ee437 100644 --- a/recipes/psplash/psplash-omap3pandora_svn.bb +++ b/recipes/psplash/psplash-omap3pandora_svn.bb @@ -4,15 +4,15 @@ require psplash-ua.inc ALTERNATIVE_PRIORITY = "30" ALTERNATIVE_PRIORITY_omap3pandora = "5" -# You can create your own pslash-hand-img.h by doing -# ./make-image-header.sh <file>.png HAND -# and rename the resulting .h to pslash-hand-img.h (for the logo) +# You can create your own pslash-poky-img.h by doing +# ./make-image-header.sh <file>.png POKY +# and rename the resulting .h to pslash-poky-img.h (for the logo) # respectively psplash-bar-img.h (BAR) for the bar. # You might also want to patch the colors (see patch) SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \ file://logo-math.patch;patch=1 \ - file://psplash-hand-img.h \ + file://psplash-poky-img.h \ file://psplash-bar-img.h \ file://psplash-default \ file://splashfuncs \ diff --git a/recipes/psplash/psplash-openmoko_svn.bb b/recipes/psplash/psplash-openmoko_svn.bb index 1114645040..bd04a02ccb 100644 --- a/recipes/psplash/psplash-openmoko_svn.bb +++ b/recipes/psplash/psplash-openmoko_svn.bb @@ -3,15 +3,15 @@ require psplash-ua.inc ALTERNATIVE_PRIORITY = "30" -# You can create your own pslash-hand-img.h by doing -# ./make-image-header.sh <file>.png HAND -# and rename the resulting .h to pslash-hand-img.h (for the logo) +# You can create your own pslash-poky-img.h by doing +# ./make-image-header.sh <file>.png POKY +# and rename the resulting .h to pslash-poky-img.h (for the logo) # respectively psplash-bar-img.h (BAR) for the bar. # You might also want to patch the colors (see patch) SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \ file://logo-math.patch;patch=1 \ - file://psplash-hand-img.h \ + file://psplash-poky-img.h \ file://psplash-bar-img.h \ file://psplash-default \ file://psplash-init" diff --git a/recipes/psplash/psplash.inc b/recipes/psplash/psplash.inc index 7319b96443..2c6555a60a 100644 --- a/recipes/psplash/psplash.inc +++ b/recipes/psplash/psplash.inc @@ -7,20 +7,20 @@ PROVIDES = "virtual/psplash" RPROVIDES_${PN} = "virtual-psplash" RCONFLICTS_${PN} = "exquisite" -SRCREV = "249" +SRCREV = "422" PV = "0.0+svnr${SRCPV}" -PR = "r23" +PR = "r25" -# You can create your own pslash-hand-img.h by doing -# ./make-image-header.sh <file>.png HAND -# and rename the resulting .h to pslash-hand-img.h (for the logo) +# You can create your own pslash-poky-img.h by doing +# ./make-image-header.sh <file>.png POKY +# and rename the resulting .h to pslash-poky-img.h (for the logo) # respectively psplash-bar-img.h (BAR) for the bar. # You might also want to patch the colors (see patch) inherit autotools pkgconfig update-rc.d do_configure_append() { - install -m 0644 ${WORKDIR}/psplash-hand-img.h ${S}/ + install -m 0644 ${WORKDIR}/psplash-poky-img.h ${S}/ install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/ if [ -e "${WORKDIR}/psplash.h" ]; then diff --git a/recipes/psplash/psplash_svn.bb b/recipes/psplash/psplash_svn.bb index 584822e254..c214e530ce 100644 --- a/recipes/psplash/psplash_svn.bb +++ b/recipes/psplash/psplash_svn.bb @@ -4,7 +4,7 @@ require psplash-ua.inc ALTERNATIVE_PRIORITY = "10" SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \ - file://psplash-hand-img.h \ + file://psplash-poky-img.h \ file://psplash-bar-img.h \ file://psplash-default \ file://splashfuncs \ |