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.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.c')
-rw-r--r-- | ui/vnc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1642,8 +1642,8 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->features = 0; vs->vnc_encoding = 0; - vs->tight_compression = 9; - vs->tight_quality = -1; /* Lossless by default */ + vs->tight.compression = 9; + vs->tight.quality = -1; /* Lossless by default */ vs->absolute = -1; /* @@ -1695,10 +1695,10 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->features |= VNC_FEATURE_WMVI_MASK; break; case VNC_ENCODING_COMPRESSLEVEL0 ... VNC_ENCODING_COMPRESSLEVEL0 + 9: - vs->tight_compression = (enc & 0x0F); + vs->tight.compression = (enc & 0x0F); break; case VNC_ENCODING_QUALITYLEVEL0 ... VNC_ENCODING_QUALITYLEVEL0 + 9: - vs->tight_quality = (enc & 0x0F); + vs->tight.quality = (enc & 0x0F); break; default: VNC_DEBUG("Unknown encoding: %d (0x%.8x): %d\n", i, enc, enc); |