summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2005-05-18 08:55:51 +0000
committerdscho <dscho>2005-05-18 08:55:51 +0000
commit2b3f56d3611429190e8ecef512236b01dbfaf83e (patch)
tree3c5db731c3255f429bd5550c86a138592945ca9e
parentee5244137266e2945b596f63ce4f60cfef6cdaf3 (diff)
downloadlibtdevnc-2b3f56d3.tar.gz
libtdevnc-2b3f56d3.zip
fix off by one bug
-rw-r--r--libvncserver/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c
index 5cac343..bf1f211 100644
--- a/libvncserver/main.c
+++ b/libvncserver/main.c
@@ -206,12 +206,12 @@ void rfbMarkRectAsModified(rfbScreenInfoPtr screen,int x1,int y1,int x2,int y2)
if(x1>x2) { i=x1; x1=x2; x2=i; }
if(x1<0) x1=0;
- if(x2>=screen->width) x2=screen->width-1;
+ if(x2>screen->width) x2=screen->width;
if(x1==x2) return;
if(y1>y2) { i=y1; y1=y2; y2=i; }
if(y1<0) y1=0;
- if(y2>=screen->height) y2=screen->height-1;
+ if(y2>screen->height) y2=screen->height;
if(y1==y2) return;
region = sraRgnCreateRect(x1,y1,x2,y2);