psplash svn: Add patch to do proper logo display height calc.
authorPaul Sokolovsky <pmiscml@gmail.com>
Sun, 2 Dec 2007 15:10:07 +0000 (15:10 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Sun, 2 Dec 2007 15:10:07 +0000 (15:10 +0000)
* So, psplash uses bottom 1/6 of screen for progress bar. So, teach
it to use 5/6 of the screen height for logo placement, not the whole
height, which leads to overlap of logo and bar.

packages/psplash/files/logo-math.patch [new file with mode: 0644]
packages/psplash/psplash_svn.bb

diff --git a/packages/psplash/files/logo-math.patch b/packages/psplash/files/logo-math.patch
new file mode 100644 (file)
index 0000000..87574b1
--- /dev/null
@@ -0,0 +1,13 @@
+Do better math when showing logo vs progressbar.
+
+--- 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 @@
+   /* 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,
index 98e2a36..398141d 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://projects.o-hand.com/psplash"
 SECTION = "base"
 LICENSE = "GPL"
 PV = "0.0+svnr${SRCREV}"
-PR = "r9"
+PR = "r10"
 
 # You can create your own pslash-hand-img.h by doing
 # ./make-image-header.sh <file>.png HAND
@@ -17,6 +17,8 @@ SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
           file://psplash-init"
 S = "${WORKDIR}/psplash"
 
+# This really should be default, but due yo openmoko hack below, can't be easily
+SRC_URI_append_angstrom = " file://logo-math.patch;patch=1 "
 SRC_URI_append_openmoko = " file://configurability.patch;patch=1 "
 
 inherit autotools pkgconfig update-rc.d