diff options
| author | tooly-bln <> | 2006-01-06 16:56:49 +0000 | 
|---|---|---|
| committer | tooly-bln <> | 2006-01-06 16:56:49 +0000 | 
| commit | ab8501eef2b55218e6bd683c310759e88314c6b7 (patch) | |
| tree | ab9d7b8a91e7bb28dfb0722d6e1eba7713161f39 | |
| parent | 4ced6e41eca67803558330375c4fc3d0c7f74fdb (diff) | |
| download | lcd4linux-ab8501eef2b55218e6bd683c310759e88314c6b7.tar.gz | |
[lcd4linux @ 2006-01-06 16:56:49 by tooly-bln]
| -rw-r--r-- | drv_LUIse.c | 19 | 
1 files changed, 11 insertions, 8 deletions
| diff --git a/drv_LUIse.c b/drv_LUIse.c index e88baca..be7b2bd 100644 --- a/drv_LUIse.c +++ b/drv_LUIse.c @@ -1,4 +1,4 @@ -/* $Id: drv_LUIse.c,v 1.1 2006/01/03 13:20:06 reinelt Exp $ +/* $Id: drv_LUIse.c,v 1.2 2006/01/06 16:56:49 tooly-bln Exp $   *   * LUIse lcd4linux driver   * @@ -23,6 +23,9 @@   *   *   * $Log: drv_LUIse.c,v $ + * Revision 1.2  2006/01/06 16:56:49  tooly-bln + * *** empty log message *** + *   * Revision 1.1  2006/01/03 13:20:06  reinelt   * LUIse driver added   * @@ -79,8 +82,8 @@ static void drv_LUIse_clear(void)      // clear picture      for (x = 0; x < 9600; x++)  	buf[x] = 0x00; -    LUI_Bitmap(devNum, 0, 0, 0, 0, 0, 320, 240, 320, 240, buf); -    LUI_Bitmap(devNum, 1, 0, 0, 0, 0, 320, 240, 320, 240, buf); +    LUI_Bitmap(devNum, 0, 0, 0, 0, 0, DCOLS, DROWS, DCOLS, DROWS, buf); +    LUI_Bitmap(devNum, 1, 0, 0, 0, 0, DCOLS, DROWS, DCOLS, DROWS, buf);  } @@ -177,23 +180,23 @@ static int drv_LUIse_start(const char *section)      switch (ScreenRotation) {      case 0:{ -	    DROWS = 240;  	    DCOLS = 320; +	    DROWS = 240;  	    break;  	}      case 1:{ -	    DROWS = 320;  	    DCOLS = 240; +	    DROWS = 320;  	    break;  	}      case 2:{ -	    DROWS = 240;  	    DCOLS = 320; +	    DROWS = 240;  	    break;  	}      case 3:{ -	    DROWS = 320;  	    DCOLS = 240; +	    DROWS = 320;  	    break;  	}      } @@ -230,7 +233,7 @@ static int drv_LUIse_start(const char *section)  	error("%s: no '%s.Backpicture' entry from %s", Name, section, cfg_source());      } else {  	drv_LUIse_clear(); -	if (LUI_BMPfile(devNum, 1, 0, 0, 0, 0, XRES, YRES, s)) { +	if (LUI_BMPfile(devNum, 1, 0, 0, 0, 0, DCOLS, DROWS, s)) {  	    error("%s: Sorry unable to load: %s", Name, s);  	    return -1;  	} | 
