diff --git a/libvncclient/hextile.c b/libvncclient/hextile.c index 61402af..6f0d70b 100644 --- a/libvncclient/hextile.c +++ b/libvncclient/hextile.c @@ -64,7 +64,7 @@ HandleHextileBPP (rfbClient* client, int rx, int ry, int rw, int rh) if (!ReadFromRFBServer(client, (char *)&bg, sizeof(bg))) return FALSE; - FillRectangle(client, x, y, w, h, fg); + FillRectangle(client, x, y, w, h, bg); if (subencoding & rfbHextileForegroundSpecified) if (!ReadFromRFBServer(client, (char *)&fg, sizeof(fg)))