aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2006-09-28 16:59:02 +0000
committerMatthew Allum <mallum@openedhand.com>2006-09-28 16:59:02 +0000
commitd77afe3de428677f21bc56822faa737595aef9f0 (patch)
tree4079ebcfaf0c68eb35293b2d5583842b13878c5d
parent0224be1c45655f03835df3762bf8cd8e92a02d4d (diff)
downloadpsplash-d77afe3de428677f21bc56822faa737595aef9f0.tar.gz
psplash-d77afe3de428677f21bc56822faa737595aef9f0.tar.bz2
psplash-d77afe3de428677f21bc56822faa737595aef9f0.zip
2006-09-28 Matthew Allum <mallum@openedhand.com>
* psplash.c: (psplash_draw_progress), (main): img positioning tweaks.
-rw-r--r--ChangeLog5
-rw-r--r--psplash.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 68f5771..f4d60b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-09-28 Matthew Allum <mallum@openedhand.com>
+ * psplash.c: (psplash_draw_progress), (main):
+ img positioning tweaks.
+
+2006-09-28 Matthew Allum <mallum@openedhand.com>
+
* Makefile.am:
* make-image-header.sh:
* psplash-bar-img.h:
diff --git a/psplash.c b/psplash.c
index 57778b8..dc917b9 100644
--- a/psplash.c
+++ b/psplash.c
@@ -68,7 +68,7 @@ psplash_draw_progress (PSplashFB *fb, int value)
x = ((fb->width - BAR_IMG_WIDTH)/2) + 4 ;
y = fb->height - (fb->height/8) + 4;
width = BAR_IMG_WIDTH - 8;
- height = BAR_IMG_WIDTH - 8;
+ height = BAR_IMG_HEIGHT - 8;
value = CLAMP(value,0,100);
@@ -231,7 +231,7 @@ main (int argc, char** argv)
psplash_fb_draw_image (fb,
(fb->width - HAND_IMG_WIDTH)/2,
- (fb->height - HAND_IMG_HEIGHT)/4,
+ (fb->height - HAND_IMG_HEIGHT)/2,
HAND_IMG_WIDTH,
HAND_IMG_HEIGHT,
HAND_IMG_BYTES_PER_PIXEL,