]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2003-04-12 16:23:10 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 12 Apr 2003 16:23:10 +0000 (16:23 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 12 Apr 2003 16:23:10 +0000 (16:23 +0000)
small glitch in XWindow.c (thanks to Moe Wibble)

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@189 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

XWindow.c

index 96bdacd6e6800b289b4b157216fcbcc8983877f8..0e77c075de7b9285fd68086ffcef3794d36d88df 100644 (file)
--- a/XWindow.c
+++ b/XWindow.c
@@ -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;
     }