[oe-commits] org.oe.dev psplash svn: Add patch to do proper logo display height calc.

pfalcon commit openembedded-commits at lists.openembedded.org
Sun Dec 2 18:07:54 UTC 2007


psplash svn: Add patch to do proper logo display height calc.
* 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.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: bc00063f2a5fade198254c785e3a6b451c3f5649
ViewMTN: http://monotone.openembedded.org/revision/info/bc00063f2a5fade198254c785e3a6b451c3f5649
Files:
1
packages/psplash/files/logo-math.patch
packages/psplash/psplash_svn.bb
Diffs:

#
# mt diff -rd03022b1f66d5ca4b5c8cf837d2bdc8433feb50f -rbc00063f2a5fade198254c785e3a6b451c3f5649
#
# 
# 
# add_file "packages/psplash/files/logo-math.patch"
#  content [3863c6539054b0633895cdd79f7940fde4987c4f]
# 
# patch "packages/psplash/psplash_svn.bb"
#  from [4614b6fa0d17df94d33a6949963375bf587e08e7]
#    to [5f388d9f92a2d8c405d7d667d3c6c45c288c82bb]
# 
============================================================
--- packages/psplash/files/logo-math.patch	3863c6539054b0633895cdd79f7940fde4987c4f
+++ packages/psplash/files/logo-math.patch	3863c6539054b0633895cdd79f7940fde4987c4f
@@ -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,
============================================================
--- packages/psplash/psplash_svn.bb	4614b6fa0d17df94d33a6949963375bf587e08e7
+++ packages/psplash/psplash_svn.bb	5f388d9f92a2d8c405d7d667d3c6c45c288c82bb
@@ -1,9 +1,9 @@ PV = "0.0+svnr${SRCREV}"
 DESCRIPTION = "Userspace framebuffer boot logo based on usplash."
 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 @@ S = "${WORKDIR}/psplash"
           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






More information about the Openembedded-commits mailing list