summaryrefslogtreecommitdiffstats
path: root/common/rfb/rreDecode.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/rreDecode.h')
-rw-r--r--common/rfb/rreDecode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/rreDecode.h b/common/rfb/rreDecode.h
index 9dc04703..56defbd1 100644
--- a/common/rfb/rreDecode.h
+++ b/common/rfb/rreDecode.h
@@ -41,7 +41,7 @@ void RRE_DECODE (const Rect& r, rdr::InStream* is,
{
int nSubrects = is->readU32();
PIXEL_T bg = is->READ_PIXEL();
- pb->fillRect(pf, r, bg);
+ pb->fillRect(pf, r, &bg);
for (int i = 0; i < nSubrects; i++) {
PIXEL_T pix = is->READ_PIXEL();
@@ -49,7 +49,7 @@ void RRE_DECODE (const Rect& r, rdr::InStream* is,
int y = is->readU16();
int w = is->readU16();
int h = is->readU16();
- pb->fillRect(pf, Rect(r.tl.x+x, r.tl.y+y, r.tl.x+x+w, r.tl.y+y+h), pix);
+ pb->fillRect(pf, Rect(r.tl.x+x, r.tl.y+y, r.tl.x+x+w, r.tl.y+y+h), &pix);
}
}