aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--XWindow.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/XWindow.c b/XWindow.c
index 96bdacd..0e77c07 100644
--- 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;
}
span>/+35 2010-02-12Improved config behavior.mjona1-9/+32 2010-02-12Fixed a segmentation fault bug in cfg_get().mjona1-1/+1 2010-02-11All static memory allocations were turned into dynamical ones.mjona1-128/+200 2010-02-07timer.c: two small optimizations (removed "flag"; tv_usec can't be negative)mzuther1-7/+4 2010-02-07added grouping of widgets by update interval (new file "timer_group.c")mzuther13-168/+441 2010-02-07BUG: handle negative delays in timer_process() (timer.c)mzuther1-0/+4 2010-02-06timer.c: I had forgotten how to initialize a "struct" :)mzuther1-3/+4 2010-02-06BUG: compensate timers for processing delay ("timer.c")mzuther1-1/+3 2010-02-06timer.c: exchanged "proprietary code" with timeradd() and timersub() functionsmzuther1-14/+10 2010-02-04timer.c: removed fruitless changes to variable "flag" from timer_process()mzuther1-2/+0 2010-02-04According to its man page, timercmp() is broken on some systems -- applied th...mzuther1-1/+1 2010-02-04small warning removedmichael1-1/+1 2010-02-04clear errno after creating the FIFO by Claas Hilbrechtmichael1-0/+2