aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2006-12-22 17:01:03 +0000
committerMatthew Allum <mallum@openedhand.com>2006-12-22 17:01:03 +0000
commite2d1f30f453c0db969987f39560c50a9f2849a40 (patch)
tree7028d1f091ccda899bd5c56dbc5dfc69ba91d252
parentd2702b3fa2d9ded63e992c7980aa6d08ab11abd7 (diff)
downloadpsplash-e2d1f30f453c0db969987f39560c50a9f2849a40.tar.gz
psplash-e2d1f30f453c0db969987f39560c50a9f2849a40.tar.bz2
psplash-e2d1f30f453c0db969987f39560c50a9f2849a40.zip
2006-12-22 Matthew Allum <mallum@openedhand.com>
* psplash.c: Whoops, actually set the angle config option
-rw-r--r--ChangeLog5
-rw-r--r--psplash.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 325b12f..088fe78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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:
diff --git a/psplash.c b/psplash.c
index 7964cfb..3d79e8e 100644
--- a/psplash.c
+++ b/psplash.c
@@ -197,12 +197,14 @@ main (int argc, char** argv)
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);
}