diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-05-21 11:54:34 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-05-24 15:18:24 -0500 |
commit | d467b679f2993cb07fcc8112bfee6f6e8a40d093 (patch) | |
tree | b53b910d10ebcebb9cdc7ba2b7ebdb8255c129de /vnchextile.h | |
parent | fbe6d7a48d71e1dd05faa380c68965da4f8de1ac (diff) |
vnc: rich cursor support.
Uses VNC_ENCODING_RICH_CURSOR. Adding XCURSOR support should be
possible without much trouble. Shouldn't be needed though as
RICH_CURSOR is a superset of XCURSOR.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnchextile.h')
-rw-r--r-- | vnchextile.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vnchextile.h b/vnchextile.h index 78ed8c4e91..b9f9f5ef89 100644 --- a/vnchextile.h +++ b/vnchextile.h @@ -189,16 +189,17 @@ static void CONCAT(send_hextile_tile_, NAME)(VncState *vs, vnc_write_u8(vs, flags); if (n_colors < 4) { if (flags & 0x02) - vs->write_pixels(vs, last_bg, sizeof(pixel_t)); + vs->write_pixels(vs, &vd->server->pf, last_bg, sizeof(pixel_t)); if (flags & 0x04) - vs->write_pixels(vs, last_fg, sizeof(pixel_t)); + vs->write_pixels(vs, &vd->server->pf, last_fg, sizeof(pixel_t)); if (n_subtiles) { vnc_write_u8(vs, n_subtiles); vnc_write(vs, data, n_data); } } else { for (j = 0; j < h; j++) { - vs->write_pixels(vs, row, w * ds_get_bytes_per_pixel(vs->ds)); + vs->write_pixels(vs, &vd->server->pf, row, + w * ds_get_bytes_per_pixel(vs->ds)); row += ds_get_linesize(vs->ds); } } |