From ee7463f37faab09ec5fdb47ab549143167b32a25 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 2 Dec 2007 15:10:07 +0000 Subject: 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. --- packages/psplash/files/logo-math.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/psplash/files/logo-math.patch (limited to 'packages/psplash/files/logo-math.patch') diff --git a/packages/psplash/files/logo-math.patch b/packages/psplash/files/logo-math.patch new file mode 100644 index 0000000000..87574b1855 --- /dev/null +++ b/packages/psplash/files/logo-math.patch @@ -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, -- cgit v1.2.3