From f73848014030f0fb62b4f9738e9192621fae1aa2 Mon Sep 17 00:00:00 2001 From: reinelt Date: Wed, 14 Feb 2001 07:40:16 +0000 Subject: [lcd4linux @ 2001-02-14 07:40:16 by reinelt] first (incomplete) GPO implementation git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@80 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- display.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'display.c') diff --git a/display.c b/display.c index 497cf42..3c0e260 100644 --- a/display.c +++ b/display.c @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.22 2001/02/13 09:00:13 reinelt Exp $ +/* $Id: display.c,v 1.23 2001/02/14 07:40:16 reinelt Exp $ * * framework for device drivers * @@ -20,6 +20,10 @@ * * * $Log: display.c,v $ + * Revision 1.23 2001/02/14 07:40:16 reinelt + * + * first (incomplete) GPO implementation + * * Revision 1.22 2001/02/13 09:00:13 reinelt * * prepared framework for GPO's (general purpose outputs) @@ -128,7 +132,7 @@ * lcd_init (char *driver) * initializes the named driver * - * lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars) + * lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars, int *gpos) * queries the attributes of the selected driver * * lcd_clear () @@ -219,16 +223,17 @@ int lcd_init (char *driver) return -1; } -int lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars) +int lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars, int *gpos) { if (Lcd==NULL) return -1; if (rows) *rows=Lcd->rows; - if(cols) *cols=Lcd->cols; + if (cols) *cols=Lcd->cols; if (xres) *xres=Lcd->xres; if (yres) *yres=Lcd->yres; if (bars) *bars=Lcd->bars; + if (gpos) *gpos=Lcd->gpos; return 0; } -- cgit v1.2.3