From e66eeecd62f62acc3d86f737d979f97a529686b0 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 23 Apr 2002 12:34:50 +0000 Subject: sync with TightVNC 1.2.3 --- rfbserver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rfbserver.c') 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; } -- cgit v1.2.1