summaryrefslogtreecommitdiffstats
path: root/libvncserver/translate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/translate.c')
-rwxr-xr-xlibvncserver/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncserver/translate.c b/libvncserver/translate.c
index 500d47d..7c341c2 100755
--- a/libvncserver/translate.c
+++ b/libvncserver/translate.c
@@ -423,6 +423,7 @@ rfbSetClientColourMap(rfbClientPtr cl, int firstColour, int nColours)
}
if (cl->format.trueColour) {
+ LOCK(cl->updateMutex);
(*rfbInitColourMapSingleTableFns
[BPP2OFFSET(cl->format.bitsPerPixel)]) (&cl->translateLookupTable,
&cl->screen->serverFormat, &cl->format,&cl->screen->colourMap);
@@ -430,6 +431,7 @@ rfbSetClientColourMap(rfbClientPtr cl, int firstColour, int nColours)
sraRgnDestroy(cl->modifiedRegion);
cl->modifiedRegion =
sraRgnCreateRect(0,0,cl->screen->width,cl->screen->height);
+ UNLOCK(cl->updateMutex);
return TRUE;
}