]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2000-04-03 23:53:23 by herp]
authorherp <herp@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Mon, 3 Apr 2000 23:53:23 +0000 (23:53 +0000)
committerherp <herp@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Mon, 3 Apr 2000 23:53:23 +0000 (23:53 +0000)
fixed a bug that caused pixel-errors ("fliegendreck") under high load

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

XWindow.c

index 4d049a858aa0f28ed93ad2a8aae344d1b5ba3b2e..dd7e5189057ef908725da80f035c3af53d2f55d4 100644 (file)
--- a/XWindow.c
+++ b/XWindow.c
@@ -1,4 +1,4 @@
-/* $Id: XWindow.c,v 1.15 2000/04/03 04:01:31 reinelt Exp $
+/* $Id: XWindow.c,v 1.16 2000/04/03 23:53:23 herp Exp $
  *
  * X11 Driver for LCD4Linux 
  *
@@ -20,6 +20,9 @@
  *
  *
  * $Log: XWindow.c,v $
+ * Revision 1.16  2000/04/03 23:53:23  herp
+ * fixed a bug that caused pixel-errors ("fliegendreck") under high load
+ *
  * Revision 1.15  2000/04/03 04:01:31  reinelt
  *
  * if 'gap' is specified as -1, a gap of (pixelsize+pixelgap) is selected automatically
@@ -69,6 +72,8 @@
 
 
 /*
+ * Tue Apr  4 02:37:38 MET 2000 fixed a bug that caused pixelerrors under h/load
+ * Sun Apr  2 22:07:10 MET 2000 fixed a bug that occasionally caused Xlib error
  * Sun Apr  2 01:32:48 MET 2000 geometric correction (too many pixelgaps)
  * Sat Apr  1 22:18:04 MET 2000 colors in format \#RRGGBB in config-file
  * Fri Mar 31 01:42:11 MET 2000 semaphore bug fixed
@@ -375,7 +380,7 @@ int x,y;
                y+=pixel+pgap;
                if (++igap==yres) { y+=rgap-pgap; igap=0; }
        }
-       if (dirty) XFlush(dp);
+       if (dirty) XSync(dp,False);
        release_lock();
        return 0;
 }
@@ -456,6 +461,7 @@ int dx,wx,wy;
                pos+=xpix;
                wpos=pos;
        }
+       XSync(dp,False);
 }
 
 static int async_update() {