2006-12-22 Matthew Allum <mallum@openedhand.com>
authorMatthew Allum <mallum@openedhand.com>
Fri, 22 Dec 2006 17:29:51 +0000 (17:29 +0000)
committerMatthew Allum <mallum@openedhand.com>
Fri, 22 Dec 2006 17:29:51 +0000 (17:29 +0000)
        * psplash-fb.c:
        * psplash.c:
        More rotation tweaks

ChangeLog
psplash-fb.c
psplash.c

index 088fe78..8789649 100644 (file)
--- 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
 
index fe7f5db..681f5cc 100644 (file)
@@ -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:
index 3d79e8e..16dc454 100644 (file)
--- 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);
     }