diff options
author | dscho <dscho> | 2002-04-23 12:34:50 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-23 12:34:50 +0000 |
commit | e66eeecd62f62acc3d86f737d979f97a529686b0 (patch) | |
tree | 2334cf41cd26be51da17b77a34792471a0d9c8f2 /rfbserver.c | |
parent | fd2931c0ed7f0b4d126b142106e7a7197f43e4e3 (diff) | |
download | libtdevnc-e66eeecd62f62acc3d86f737d979f97a529686b0.tar.gz libtdevnc-e66eeecd62f62acc3d86f737d979f97a529686b0.zip |
sync with TightVNC 1.2.3
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rfbserver.c b/rfbserver.c index dbbf226..024b851 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -1208,7 +1208,8 @@ rfbSendRectEncodingRaw(cl, x, y, w, h) char *fbptr = (cl->screen->frameBuffer + (cl->screen->paddedWidthInBytes * y) + (x * (cl->screen->bitsPerPixel / 8))); - if (cl->ublen + sz_rfbFramebufferUpdateRectHeader > UPDATE_BUF_SIZE) { + /* Flush the buffer to guarantee correct alignment for translateFn(). */ + if (cl->ublen > 0) { if (!rfbSendUpdateBuf(cl)) return FALSE; } |