diff options
author | Corentin Chary <corentincj@iksaif.net> | 2010-07-07 20:57:59 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-26 17:36:14 -0500 |
commit | d1af0e056a5a3681dc82a2e715bb292c6d300def (patch) | |
tree | b03d5a92a61694920d527bcd1763bbd3574ff28f /ui/vnc-enc-hextile.c | |
parent | 5136a0526989fdfd8799ae4e29ff43d5b80ee37e (diff) | |
download | qemu-d1af0e056a5a3681dc82a2e715bb292c6d300def.zip qemu-d1af0e056a5a3681dc82a2e715bb292c6d300def.tar.gz qemu-d1af0e056a5a3681dc82a2e715bb292c6d300def.tar.bz2 |
vnc: encapsulate encoding members
This will allow to implement the threaded VNC server in a
more cleaner way.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/vnc-enc-hextile.c')
-rw-r--r-- | ui/vnc-enc-hextile.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/vnc-enc-hextile.c b/ui/vnc-enc-hextile.c index fa4b264..364a491 100644 --- a/ui/vnc-enc-hextile.c +++ b/ui/vnc-enc-hextile.c @@ -75,7 +75,7 @@ int vnc_hextile_send_framebuffer_update(VncState *vs, int x, has_fg = has_bg = 0; for (j = y; j < (y + h); j += 16) { for (i = x; i < (x + w); i += 16) { - vs->send_hextile_tile(vs, i, j, + vs->hextile.send_tile(vs, i, j, MIN(16, x + w - i), MIN(16, y + h - j), last_bg, last_fg, &has_bg, &has_fg); } @@ -91,25 +91,25 @@ void vnc_hextile_set_pixel_conversion(VncState *vs, int generic) if (!generic) { switch (vs->ds->surface->pf.bits_per_pixel) { case 8: - vs->send_hextile_tile = send_hextile_tile_8; + vs->hextile.send_tile = send_hextile_tile_8; break; case 16: - vs->send_hextile_tile = send_hextile_tile_16; + vs->hextile.send_tile = send_hextile_tile_16; break; case 32: - vs->send_hextile_tile = send_hextile_tile_32; + vs->hextile.send_tile = send_hextile_tile_32; break; } } else { switch (vs->ds->surface->pf.bits_per_pixel) { case 8: - vs->send_hextile_tile = send_hextile_tile_generic_8; + vs->hextile.send_tile = send_hextile_tile_generic_8; break; case 16: - vs->send_hextile_tile = send_hextile_tile_generic_16; + vs->hextile.send_tile = send_hextile_tile_generic_16; break; case 32: - vs->send_hextile_tile = send_hextile_tile_generic_32; + vs->hextile.send_tile = send_hextile_tile_generic_32; break; } } |