summaryrefslogtreecommitdiff
path: root/vncEncodeHexT.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 /vncEncodeHexT.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 'vncEncodeHexT.c')
-rw-r--r--vncEncodeHexT.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vncEncodeHexT.c b/vncEncodeHexT.c
index ce7c3f0..a478c98 100644
--- a/vncEncodeHexT.c
+++ b/vncEncodeHexT.c
@@ -81,8 +81,8 @@ vncEncodeHexT::NumCodedRects(RECT &rect)
UINT
vncEncodeHexT::EncodeRect(BYTE *source, BYTE *dest, const RECT &rect)
{
- const UINT rectW = rect.right - rect.left;
- const UINT rectH = rect.bottom - rect.top;
+ const UINT rectW = rect.right - rect.left + 1;
+ const UINT rectH = rect.bottom - rect.top + 1;
int encodedResult;
// Create the rectangle header
@@ -176,8 +176,8 @@ vncEncodeHexT::EncodeHextiles##bpp(BYTE *source, BYTE *dest, \
RECT hexrect; \
hexrect.left = x; \
hexrect.top = y; \
- hexrect.right = x+w; \
- hexrect.bottom = y+h; \
+ hexrect.right = x+w-1; \
+ hexrect.bottom = y+h-1; \
Translate(source, (BYTE *) &clientPixelData, hexrect); \
\
rectoffset = destoffset; \