From 13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 28 Jul 2003 12:01:07 +0000 Subject: fixed maxRectsPerUpdate with Tight encoding bug; some autoconfing; stderr should not be used in a library (use rfbLog instead) --- libvncclient/rre.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libvncclient/rre.c') diff --git a/libvncclient/rre.c b/libvncclient/rre.c index fba3767..a0b75e6 100644 --- a/libvncclient/rre.c +++ b/libvncclient/rre.c @@ -40,7 +40,7 @@ HandleRREBPP (rfbClient* client, int rx, int ry, int rw, int rh) if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbRREHeader)) return FALSE; - hdr.nSubrects = Swap32IfLE(hdr.nSubrects); + hdr.nSubrects = rfbClientSwap32IfLE(hdr.nSubrects); if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) return FALSE; @@ -54,10 +54,10 @@ HandleRREBPP (rfbClient* client, int rx, int ry, int rw, int rh) if (!ReadFromRFBServer(client, (char *)&subrect, sz_rfbRectangle)) return FALSE; - subrect.x = Swap16IfLE(subrect.x); - subrect.y = Swap16IfLE(subrect.y); - subrect.w = Swap16IfLE(subrect.w); - subrect.h = Swap16IfLE(subrect.h); + subrect.x = rfbClientSwap16IfLE(subrect.x); + subrect.y = rfbClientSwap16IfLE(subrect.y); + subrect.w = rfbClientSwap16IfLE(subrect.w); + subrect.h = rfbClientSwap16IfLE(subrect.h); FillRectangle(client, rx+subrect.x, ry+subrect.y, subrect.w, subrect.h, pix); } -- cgit v1.2.1