diff options
author | Balazs Ludmany <ludmany.balazs@cloud.bme.hu> | 2016-06-21 10:03:52 +0200 |
---|---|---|
committer | Balazs Ludmany <ludmany.balazs@cloud.bme.hu> | 2016-06-29 09:46:10 +0200 |
commit | a01a18df1d44ec875708d5fc9d6c4e0934535974 (patch) | |
tree | 7bafd41f957a76e6c8b204791d7e7dd39fec0b02 /libvncclient/hextile.c | |
parent | 1f8c443cbc439e79d9e2c8b92643b65b7332db89 (diff) | |
download | libtdevnc-a01a18df1d44ec875708d5fc9d6c4e0934535974.tar.gz libtdevnc-a01a18df1d44ec875708d5fc9d6c4e0934535974.zip |
Add function pointers for every type of rectangle
Diffstat (limited to 'libvncclient/hextile.c')
-rw-r--r-- | libvncclient/hextile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libvncclient/hextile.c b/libvncclient/hextile.c index 8698445..05a7cf5 100644 --- a/libvncclient/hextile.c +++ b/libvncclient/hextile.c @@ -55,7 +55,7 @@ HandleHextileBPP (rfbClient* client, int rx, int ry, int rw, int rh) if (!ReadFromRFBServer(client, client->buffer, w * h * (BPP / 8))) return FALSE; - CopyRectangle(client, (uint8_t *)client->buffer, x, y, w, h); + client->GotBitmap(client, (uint8_t *)client->buffer, x, y, w, h); continue; } @@ -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, bg); + client->GotFillRect(client, x, y, w, h, bg); if (subencoding & rfbHextileForegroundSpecified) if (!ReadFromRFBServer(client, (char *)&fg, sizeof(fg))) @@ -100,7 +100,7 @@ HandleHextileBPP (rfbClient* client, int rx, int ry, int rw, int rh) sh = rfbHextileExtractH(*ptr); ptr++; - FillRectangle(client, x+sx, y+sy, sw, sh, fg); + client->GotFillRect(client, x+sx, y+sy, sw, sh, fg); } } else { @@ -115,7 +115,7 @@ HandleHextileBPP (rfbClient* client, int rx, int ry, int rw, int rh) sh = rfbHextileExtractH(*ptr); ptr++; - FillRectangle(client, x+sx, y+sy, sw, sh, fg); + client->GotFillRect(client, x+sx, y+sy, sw, sh, fg); } } } |