aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2006-12-22 17:29:51 +0000
committerMatthew Allum <mallum@openedhand.com>2006-12-22 17:29:51 +0000
commitbc1ba37f29dc7df18560cb6f1e264d22bf025e67 (patch)
treeb50912363b4ceff9795a7e39ec902bb9367eaff8
parente2d1f30f453c0db969987f39560c50a9f2849a40 (diff)
downloadpsplash-bc1ba37f29dc7df18560cb6f1e264d22bf025e67.tar.gz
psplash-bc1ba37f29dc7df18560cb6f1e264d22bf025e67.tar.bz2
psplash-bc1ba37f29dc7df18560cb6f1e264d22bf025e67.zip
2006-12-22 Matthew Allum <mallum@openedhand.com>
* psplash-fb.c: * psplash.c: More rotation tweaks
-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);
}