mirror of https://github.com/xemu-project/xemu.git
Don't forget to save VNC FB dimensions after resize (Brad Campbell).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4644 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
89cdb6af04
commit
b94eb43f6e
18
vnc.c
18
vnc.c
|
@ -307,14 +307,16 @@ static void vnc_dpy_resize(DisplayState *ds, int w, int h)
|
||||||
ds->width = w;
|
ds->width = w;
|
||||||
ds->height = h;
|
ds->height = h;
|
||||||
ds->linesize = w * vs->depth;
|
ds->linesize = w * vs->depth;
|
||||||
if (vs->csock != -1 && vs->has_resize && size_changed) {
|
if (size_changed) {
|
||||||
vnc_write_u8(vs, 0); /* msg id */
|
vs->width = ds->width;
|
||||||
vnc_write_u8(vs, 0);
|
vs->height = ds->height;
|
||||||
vnc_write_u16(vs, 1); /* number of rects */
|
if (vs->csock != -1 && vs->has_resize) {
|
||||||
vnc_framebuffer_update(vs, 0, 0, ds->width, ds->height, -223);
|
vnc_write_u8(vs, 0); /* msg id */
|
||||||
vnc_flush(vs);
|
vnc_write_u8(vs, 0);
|
||||||
vs->width = ds->width;
|
vnc_write_u16(vs, 1); /* number of rects */
|
||||||
vs->height = ds->height;
|
vnc_framebuffer_update(vs, 0, 0, ds->width, ds->height, -223);
|
||||||
|
vnc_flush(vs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(vs->dirty_row, 0xFF, sizeof(vs->dirty_row));
|
memset(vs->dirty_row, 0xFF, sizeof(vs->dirty_row));
|
||||||
|
|
Loading…
Reference in New Issue