diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | psplash-fb.c | 6 | ||||
-rw-r--r-- | psplash.c | 2 |
3 files changed, 10 insertions, 4 deletions
@@ -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: @@ -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); } |