summaryrefslogtreecommitdiff
path: root/vncEncoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'vncEncoder.c')
-rw-r--r--vncEncoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vncEncoder.c b/vncEncoder.c
index 1ade07d..3f6b73c 100644
--- a/vncEncoder.c
+++ b/vncEncoder.c
@@ -121,8 +121,8 @@ vncEncoder::Translate(BYTE *source, BYTE *dest, const RECT &rect)
(char *)sourcepos,
(char *)dest,
m_bytesPerRow,
- rect.right-rect.left,
- rect.bottom-rect.top
+ rect.right-rect.left+1,
+ rect.bottom-rect.top+1
);
}
@@ -142,8 +142,8 @@ inline UINT
vncEncoder::EncodeRect(BYTE *source, BYTE *dest, const RECT &rect)
{
- const int rectW = rect.right - rect.left;
- const int rectH = rect.bottom - rect.top;
+ const int rectW = rect.right - rect.left + 1;
+ const int rectH = rect.bottom - rect.top + 1;
// Create the header for the update in the destination area