summaryrefslogtreecommitdiff
path: root/vncEncoder.c
diff options
context:
space:
mode:
authorzwer <zwer@1f4bef6d-8e0a-0410-8695-e467da8aaccf>2007-01-06 22:04:00 +0000
committerzwer <zwer@1f4bef6d-8e0a-0410-8695-e467da8aaccf>2007-01-06 22:04:00 +0000
commitc6b150c7a364c5cb9d5149a92c81f854eb71d6d4 (patch)
tree023c9451d073c84056496a2bf5cb3df75d13cba0 /vncEncoder.c
parenta1dc189c5334990a62f7b15bfa45071eec1d6db9 (diff)
downloadvdr-plugin-ffnetdev-c6b150c7a364c5cb9d5149a92c81f854eb71d6d4.tar.gz
vdr-plugin-ffnetdev-c6b150c7a364c5cb9d5149a92c81f854eb71d6d4.tar.bz2
- tests mit UDP-Streaming
git-svn-id: svn://svn.berlios.de/ffnetdev/trunk@24 1f4bef6d-8e0a-0410-8695-e467da8aaccf
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