aboutsummaryrefslogtreecommitdiffstats
path: root/XWindow.c
diff options
context:
space:
mode:
authorherp <>2000-05-02 23:07:48 +0000
committerherp <>2000-05-02 23:07:48 +0000
commit02c50cc95ba8ef99b87184cf9032af8e7e41bdd2 (patch)
tree211258e606758285e45ae4abb162f84c50baac8d /XWindow.c
parent121b4b547f99e54ad7d30a313e55d105717794a6 (diff)
downloadlcd4linux-02c50cc95ba8ef99b87184cf9032af8e7e41bdd2.tar.gz
[lcd4linux @ 2000-05-02 23:07:48 by herp]
Crystalfontz initial coding
Diffstat (limited to 'XWindow.c')
-rw-r--r--XWindow.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/XWindow.c b/XWindow.c
index 3be439f..124dac2 100644
--- a/XWindow.c
+++ b/XWindow.c
@@ -1,4 +1,4 @@
-/* $Id: XWindow.c,v 1.17 2000/04/05 05:58:36 reinelt Exp $
+/* $Id: XWindow.c,v 1.18 2000/05/02 23:07:48 herp Exp $
*
* X11 Driver for LCD4Linux
*
@@ -20,6 +20,9 @@
*
*
* $Log: XWindow.c,v $
+ * Revision 1.18 2000/05/02 23:07:48 herp
+ * Crystalfontz initial coding
+ *
* Revision 1.17 2000/04/05 05:58:36 reinelt
*
* fixed bug in XWindow.c: union semun isn't defined with glibc-2.1
@@ -449,10 +452,8 @@ int dx,wx,wy;
/*lower right corner*/
x+=width-1;
y+=height-1;
- xto=xres*(x/boxw)+(x%boxw)/(pixel+pgap)
- -((x%boxw>xres*pixel+(xres-1)*pgap)?1:0);
- yto=yres*(y/boxh)+(y%boxh)/(pixel+pgap)
- -((y%boxh>yres*pixel+(yres-1)*pgap)?1:0);
+ xto=xres*(x/boxw)+(x%boxw)/(pixel+pgap);
+ yto=yres*(y/boxh)+(y%boxh)/(pixel+pgap);
pos=yfrom*xres*cols+xfrom;
wy=border+yfrom*(pixel+pgap)+(yfrom/yres)*(rgap-pgap);