aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-03-26 12:55:03 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-03-26 12:55:03 +0000
commit1b000d3a15726fce16c2eda57ff51cd1f3886cc9 (patch)
treead5aa9a0fbc7d93f309558d37f17be05263fb827 /lcd4linux.c
parent66b33ed13175879ea3119f4ebe4316a77a08d7fc (diff)
downloadlcd4linux-1b000d3a15726fce16c2eda57ff51cd1f3886cc9.tar.gz
[lcd4linux @ 2000-03-26 12:55:03 by reinelt]
enhancements to the PPM driver git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@21 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--lcd4linux.c21
-rw-r--r--lcd4linux.conf.sample2
2 files changed, 12 insertions, 11 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 0d48d36..3d9d55b 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.12 2000/03/25 05:50:43 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.13 2000/03/26 12:55:03 reinelt Exp $
*
* LCD4Linux
*
@@ -20,6 +20,10 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.13 2000/03/26 12:55:03 reinelt
+ *
+ * enhancements to the PPM driver
+ *
* Revision 1.12 2000/03/25 05:50:43 reinelt
*
* memory leak in Raster_flush closed
@@ -89,12 +93,13 @@
#include "processor.h"
char *release="LCD4Linux V" VERSION " (c) 2000 Michael Reinelt <reinelt@eunet.at>";
+char *output=NULL;
int tick, tack;
static void usage(void)
{
printf ("%s\n", release);
- printf ("usage: lcd4linux [-h] [-l] [-f config-file]\n");
+ printf ("usage: lcd4linux [-h] [-l] [-f config-file] [-o output-file]\n");
}
void main (int argc, char *argv[])
@@ -103,7 +108,7 @@ void main (int argc, char *argv[])
char *display;
int c, smooth;
- while ((c=getopt (argc, argv, "hlf:"))!=EOF) {
+ while ((c=getopt (argc, argv, "hlf:o:"))!=EOF) {
switch (c) {
case 'h':
usage();
@@ -115,6 +120,9 @@ void main (int argc, char *argv[])
case 'f':
cfg=optarg;
break;
+ case 'o':
+ output=optarg;
+ break;
default:
exit(2);
}
@@ -149,13 +157,6 @@ void main (int argc, char *argv[])
process_init();
- // FIXME: just debugging
- lcd_clear();
- lcd_put (1, 1, "so what!");
- lcd_bar (BAR_R|BAR_H2, 2,1,50,19,46);
- lcd_flush();
- exit (0);
-
lcd_clear();
lcd_put (1, 1, "* LCD4Linux V" VERSION " *");
lcd_put (2, 1, " (c) 2000 M.Reinelt");
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample
index 9be532f..aad16c6 100644
--- a/lcd4linux.conf.sample
+++ b/lcd4linux.conf.sample
@@ -5,7 +5,7 @@
#Display X11
DISPLAY PPM
-size 10x2
+size 20x4
font 5x8
pixel 3+1
gap 4x4