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
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:
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);
}