CVS: rdesktop xwin.c,1.154,1.155
Peter ?strand <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18060
Modified Files:
xwin.c
Log Message:
Sometimes, the boxcx value is something really large, like 32691. This
makes XCopyArea fail with Xvnc. If boxcx is this large, reset to
g_width - boxx.
(The reason why boxcx is strange is that os->boxright is strange. I
have no idea what's causing this, though.)
Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -C2 -d -r1.154 -r1.155
*** xwin.c 3 Mar 2004 10:41:53 -0000 1.154
--- xwin.c 3 Mar 2004 10:46:35 -0000 1.155
***************
*** 1923,1926 ****
--- 1923,1932 ----
SET_FOREGROUND(bgcolour);
+ /* Sometimes, the boxcx value is something really large, like
+ 32691. This makes XCopyArea fail with Xvnc. The code below
+ is a quick fix. */
+ if (boxx + boxcx > g_width)
+ boxcx = g_width - boxx;
+
if (boxcx > 1)
{
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click