diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-03-26 18:46:28 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-03-26 18:46:28 +0000 |
commit | c028ba39da4ad240a79d50ca39e6fc2bf0590e2c (patch) | |
tree | d97b388f449ae839224b891f069eb7ca98957b0b /display.h | |
parent | 1b000d3a15726fce16c2eda57ff51cd1f3886cc9 (diff) | |
download | lcd4linux-c028ba39da4ad240a79d50ca39e6fc2bf0590e2c.tar.gz |
[lcd4linux @ 2000-03-26 18:46:28 by reinelt]
bug in pixmap.c that leaded to empty bars fixed
name conflicts with X11 resolved
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@22 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: display.h,v 1.9 2000/03/25 05:50:43 reinelt Exp $ +/* $Id: display.h,v 1.10 2000/03/26 18:46:28 reinelt Exp $ * * framework for device drivers * @@ -20,6 +20,11 @@ * * * $Log: display.h,v $ + * Revision 1.10 2000/03/26 18:46:28 reinelt + * + * bug in pixmap.c that leaded to empty bars fixed + * name conflicts with X11 resolved + * * Revision 1.9 2000/03/25 05:50:43 reinelt * * memory leak in Raster_flush closed @@ -73,27 +78,27 @@ #define BAR_V (BAR_U | BAR_D) #define BAR_HV (BAR_H | BAR_V) -typedef struct DISPLAY { +typedef struct LCD { char *name; int rows; int cols; int xres; int yres; int bars; - int (*init) (struct DISPLAY *Self); + int (*init) (struct LCD *Self); int (*clear) (void); int (*put) (int x, int y, char *text); int (*bar) (int type, int x, int y, int max, int len1, int len2); int (*flush) (void); -} DISPLAY; +} LCD; typedef struct { char *name; - DISPLAY *Display; + LCD *Model; } FAMILY; int lcd_list (void); -int lcd_init (char *display); +int lcd_init (char *driver); int lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars); int lcd_clear (void); int lcd_put (int row, int col, char *text); |