* psplash.c:
Whoops, actually set the angle config option
2006-12-22 Matthew Allum <mallum@openedhand.com>
+ * psplash.c:
+ Whoops, actually set the angle config option
+
+2006-12-22 Matthew Allum <mallum@openedhand.com>
+
* psplash-fb.c:
* psplash-fb.h:
* psplash.c:
if (!strcmp(argv[i],"-a") || !strcmp(argv[i],"--angle"))
{
if (++i > argc) goto fail;
- angle = atoi(argv[0]);
+ angle = atoi(argv[i]);
continue;
}
fail:
- fprintf(stderr, "Usage: %s [-n|--no-console-switch] [-a|--angle <0|90|180|270>]\n", argv[0]);
+ fprintf(stderr,
+ "Usage: %s [-n|--no-console-switch] [-a|--angle <0|90|180|270>]\n",
+ argv[0]);
exit(-1);
}