aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--psplash-fb.c6
-rw-r--r--psplash.c2
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 088fe78..8789649 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2006-12-22 Matthew Allum <mallum@openedhand.com>
+ * psplash-fb.c:
+ * psplash.c:
+ More rotation tweaks
+
+2006-12-22 Matthew Allum <mallum@openedhand.com>
+
* psplash.c:
Whoops, actually set the angle config option
diff --git a/psplash-fb.c b/psplash-fb.c
index fe7f5db..681f5cc 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
@@ -161,13 +161,13 @@ psplash_fb_plot_pixel (PSplashFB *fb,
switch (fb->angle)
{
case 270:
- off = OFFSET (fb, fb->real_height - y - 1, x);
+ off = OFFSET (fb, fb->height - y - 1, x);
break;
case 180:
- off = OFFSET (fb, fb->real_width - x - 1, fb->real_height - y - 1);
+ off = OFFSET (fb, fb->width - x - 1, fb->height - y - 1);
break;
case 90:
- off = OFFSET (fb, y, fb->real_width - x - 1);
+ off = OFFSET (fb, y, fb->width - x - 1);
break;
case 0:
default:
diff --git a/psplash.c b/psplash.c
index 3d79e8e..16dc454 100644
--- a/psplash.c
+++ b/psplash.c
@@ -203,7 +203,7 @@ main (int argc, char** argv)
fail:
fprintf(stderr,
- "Usage: %s [-n|--no-console-switch] [-a|--angle <0|90|180|270>]\n",
+ "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
argv[0]);
exit(-1);
}