diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-04-03 17:31:52 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-04-03 17:31:52 +0000 |
commit | 7d7789328fabe72374bf90bf65856bbc9e4f540b (patch) | |
tree | d88e02909a0588de1ad6bf5d9371781c2b07e2a4 /display.c | |
parent | 8351360331d87e43bae365d948f3b5329b2430e2 (diff) | |
download | lcd4linux-7d7789328fabe72374bf90bf65856bbc9e4f540b.tar.gz |
[lcd4linux @ 2000-04-03 17:31:52 by reinelt]
suppress welcome message if display is smaller than 20x2
change lcd4linux.ppm to 32 pixel high so KDE won't stretch the icon
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@37 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | display.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.13 2000/03/30 16:46:57 reinelt Exp $ +/* $Id: display.c,v 1.14 2000/04/03 17:31:52 reinelt Exp $ * * framework for device drivers * @@ -20,6 +20,11 @@ * * * $Log: display.c,v $ + * Revision 1.14 2000/04/03 17:31:52 reinelt + * + * suppress welcome message if display is smaller than 20x2 + * change lcd4linux.ppm to 32 pixel high so KDE won't stretch the icon + * * Revision 1.13 2000/03/30 16:46:57 reinelt * * configure now handles '--with-x' and '--without-x' correct @@ -166,11 +171,11 @@ int lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars) if (Lcd==NULL) return -1; - *rows=Lcd->rows; - *cols=Lcd->cols; - *xres=Lcd->xres; - *yres=Lcd->yres; - *bars=Lcd->bars; + if (rows) *rows=Lcd->rows; + if(cols) *cols=Lcd->cols; + if (xres) *xres=Lcd->xres; + if (yres) *yres=Lcd->yres; + if (bars) *bars=Lcd->bars; return 0; } |