mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
vnc: return the number of rectangles
Some encodings like tight supports tiling (spliting in multiple sub-rectangles). So we needed a way to tell vnc_update_client() how much rectangles are in the buffer. zlib, raw and hextile always send a full rectangle. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
161c4f20bf
commit
a885211eed
4 changed files with 26 additions and 16 deletions
|
@ -62,8 +62,8 @@ static void hextile_enc_cord(uint8_t *ptr, int x, int y, int w, int h)
|
|||
#undef BPP
|
||||
#undef GENERIC
|
||||
|
||||
void vnc_hextile_send_framebuffer_update(VncState *vs, int x,
|
||||
int y, int w, int h)
|
||||
int vnc_hextile_send_framebuffer_update(VncState *vs, int x,
|
||||
int y, int w, int h)
|
||||
{
|
||||
int i, j;
|
||||
int has_fg, has_bg;
|
||||
|
@ -83,6 +83,7 @@ void vnc_hextile_send_framebuffer_update(VncState *vs, int x,
|
|||
free(last_fg);
|
||||
free(last_bg);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void vnc_hextile_set_pixel_conversion(VncState *vs, int generic)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue