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.) git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@619 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
56c429de0c
commit
a9bd98563c
6
xwin.c
6
xwin.c
@ -1922,6 +1922,12 @@ ui_draw_text(uint8 font, uint8 flags, int mixmode, int x, int y,
|
||||
|
||||
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)
|
||||
{
|
||||
FILL_RECTANGLE_BACKSTORE(boxx, boxy, boxcx, boxcy);
|
||||
|
Loading…
Reference in New Issue
Block a user