mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
+16
-9
@@ -1,4 +1,4 @@
|
||||
/* $Id: lcd4linux.c,v 1.16 2000/04/03 04:46:38 reinelt Exp $
|
||||
/* $Id: lcd4linux.c,v 1.17 2000/04/03 17:31:52 reinelt Exp $
|
||||
*
|
||||
* LCD4Linux
|
||||
*
|
||||
@@ -20,6 +20,11 @@
|
||||
*
|
||||
*
|
||||
* $Log: lcd4linux.c,v $
|
||||
* Revision 1.17 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.16 2000/04/03 04:46:38 reinelt
|
||||
*
|
||||
* added '-c key=val' option
|
||||
@@ -119,8 +124,8 @@ int main (int argc, char *argv[])
|
||||
{
|
||||
char *cfg="/etc/lcd4linux.conf";
|
||||
char *driver;
|
||||
int c, smooth;
|
||||
|
||||
int c, x, y, smooth;
|
||||
|
||||
while ((c=getopt (argc, argv, "c:f:hlo:"))!=EOF) {
|
||||
switch (c) {
|
||||
case 'c':
|
||||
@@ -175,14 +180,16 @@ int main (int argc, char *argv[])
|
||||
tack=atoi(cfg_get("tack")?:"500");
|
||||
|
||||
process_init();
|
||||
|
||||
lcd_clear();
|
||||
lcd_put (1, 1, "* LCD4Linux V" VERSION " *");
|
||||
lcd_put (2, 1, " (c) 2000 M.Reinelt");
|
||||
lcd_flush();
|
||||
|
||||
sleep (3);
|
||||
lcd_clear();
|
||||
lcd_query (&y, &x, NULL, NULL, NULL);
|
||||
if (x>=20 && y>=2) {
|
||||
lcd_put (1, 1, "* LCD4Linux V" VERSION " *");
|
||||
lcd_put (2, 1, " (c) 2000 M.Reinelt");
|
||||
lcd_flush();
|
||||
sleep (3);
|
||||
lcd_clear();
|
||||
}
|
||||
|
||||
smooth=0;
|
||||
while (1) {
|
||||
|
||||
+1
-1
@@ -1,8 +1,8 @@
|
||||
# KDE Config File
|
||||
[KDE Desktop Entry]
|
||||
Comment[C]=LCD4Linux
|
||||
SwallowTitle=XLCD4Linux
|
||||
SwallowExec=lcd4linux -f /etc/lcd4kde.conf
|
||||
SwallowTitle=XLCD4Linux
|
||||
BinaryPattern=
|
||||
Name=LCD4Linux
|
||||
Name[C]=LCD4Linux
|
||||
|
||||
+17
-2
@@ -1,9 +1,16 @@
|
||||
/* XPM */
|
||||
static char *lcd4linux[] = {
|
||||
"38 18 2 1",
|
||||
"38 32 3 1",
|
||||
" c None",
|
||||
"# c #102000",
|
||||
". c #a0d000",
|
||||
"......................................",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
"......................................",
|
||||
"..##............######....######......",
|
||||
"..##............######....######......",
|
||||
@@ -21,4 +28,12 @@ static char *lcd4linux[] = {
|
||||
"..##########....######....######......",
|
||||
"......................................",
|
||||
"......................................",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user