diff options
author | dscho <dscho> | 2001-10-16 19:29:49 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-16 19:29:49 +0000 |
commit | 47f18e575da762733c19e9f499472ba42f478df8 (patch) | |
tree | 98bda1735006f1868227b80f975fce42bc99249f /rfbserver.c | |
parent | f41dc003f61d7685d32228ebe2f4b1d71b8ab1cb (diff) | |
download | libtdevnc-47f18e575da762733c19e9f499472ba42f478df8.tar.gz libtdevnc-47f18e575da762733c19e9f499472ba42f478df8.zip |
font errors, requestedRegion bug
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rfbserver.c b/rfbserver.c index e8c913d..3c3c858 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -871,7 +871,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) sraRect rect; int nUpdateRegionRects; rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf; - sraRegionPtr updateRegion,updateCopyRegion; + sraRegionPtr updateRegion,updateCopyRegion,tmpRegion; int dx, dy; Bool sendCursorShape = FALSE; @@ -932,8 +932,10 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) updateCopyRegion = sraRgnCreateRgn(cl->copyRegion); sraRgnAnd(updateCopyRegion,cl->requestedRegion); - sraRgnOffset(cl->requestedRegion,cl->copyDX,cl->copyDY); - sraRgnAnd(updateCopyRegion,cl->requestedRegion); + tmpRegion = sraRgnCreateRgn(cl->requestedRegion); + sraRgnOffset(tmpRegion,cl->copyDX,cl->copyDY); + sraRgnAnd(updateCopyRegion,tmpRegion); + sraRgnDestroy(tmpRegion); dx = cl->copyDX; dy = cl->copyDY; @@ -957,7 +959,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) sraRgnSubtract(cl->modifiedRegion,updateRegion); sraRgnSubtract(cl->modifiedRegion,updateCopyRegion); - sraRgnMakeEmpty(cl->requestedRegion); + /* sraRgnMakeEmpty(cl->requestedRegion); */ sraRgnMakeEmpty(cl->copyRegion); cl->copyDX = 0; cl->copyDY = 0; |