From 89148d774ffe8f31f733683997974f50a522deb5 Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 4 Jun 2005 02:17:41 +0000 Subject: main.c: no sraRgnSubstract for copyRect, scrolls for x11vnc -scale; add -fixscreen --- libvncserver/main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libvncserver') diff --git a/libvncserver/main.c b/libvncserver/main.c index e4d1ea7..be67be5 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -148,10 +148,8 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in if(!sraRgnEmpty(cursorRegion)) { /* * current cursor rect overlaps with the copy region *dest*, - * so remove it from the copy-rect treatment, and mark it as - * modified since we won't copy-rect stuff to it. + * mark it as modified since we won't copy-rect stuff to it. */ - sraRgnSubtract(cl->copyRegion, cursorRegion); sraRgnOr(cl->modifiedRegion, cursorRegion); } sraRgnDestroy(cursorRegion); @@ -163,11 +161,9 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in if(!sraRgnEmpty(cursorRegion)) { /* * current cursor rect overlaps with the copy region *source*, - * so remove it from the copy-rect treatment, and mark the - * *displaced* cursorRegion as modified since we won't copyrect - * stuff to it. + * mark the *displaced* cursorRegion as modified since we + * won't copyrect stuff to it. */ - sraRgnSubtract(cl->copyRegion, cursorRegion); sraRgnOr(cl->modifiedRegion, cursorRegion); } sraRgnDestroy(cursorRegion); -- cgit v1.2.3