diff options
author | reinelt <> | 2003-04-12 16:23:10 +0000 |
---|---|---|
committer | reinelt <> | 2003-04-12 16:23:10 +0000 |
commit | 4f049117fe67074e0aada84c214449fdb6c6e36a (patch) | |
tree | c516507a49f6d808e57055b604a1ed742a88296f /XWindow.c | |
parent | 72fd720c2d1a819d454771f99e86d852416e568e (diff) | |
download | lcd4linux-4f049117fe67074e0aada84c214449fdb6c6e36a.tar.gz |
[lcd4linux @ 2003-04-12 16:23:10 by reinelt]
small glitch in XWindow.c (thanks to Moe Wibble)
Diffstat (limited to 'XWindow.c')
-rw-r--r-- | XWindow.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: XWindow.c,v 1.30 2003/02/22 07:53:10 reinelt Exp $ +/* $Id: XWindow.c,v 1.31 2003/04/12 16:23:10 reinelt Exp $ * * X11 Driver for LCD4Linux * @@ -20,6 +20,9 @@ * * * $Log: XWindow.c,v $ + * Revision 1.31 2003/04/12 16:23:10 reinelt + * small glitch in XWindow.c (thanks to Moe Wibble) + * * Revision 1.30 2003/02/22 07:53:10 reinelt * cfg_get(key,defval) * @@ -515,8 +518,9 @@ static void update(int x,int y,int width,int height) if (y<y0 || y>y1) continue; for(col=0;col<cols*xres;col++) { int x=border+(col/xres)*cgap+col*(pixel+pgap); + int p; if (x<x0 || x>x1) continue; - int p=row*cols*xres+col; + p=row*cols*xres+col; XFillRectangle(dp,w,LCDpixmap2[p]?gc:gch,x,y,pixel,pixel); dirty=1; } |