diff options
author | herp <herp@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-05-02 23:07:48 +0000 |
---|---|---|
committer | herp <herp@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-05-02 23:07:48 +0000 |
commit | 6373b1b0c309ef99f98295cfc70b5411c96afce2 (patch) | |
tree | 211258e606758285e45ae4abb162f84c50baac8d /XWindow.c | |
parent | 23a1214b15e7750a9cd0b849c394ba90824bd638 (diff) | |
download | lcd4linux-6373b1b0c309ef99f98295cfc70b5411c96afce2.tar.gz |
[lcd4linux @ 2000-05-02 23:07:48 by herp]
Crystalfontz initial coding
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@54 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | XWindow.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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); |