qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4644] Don't forget to save VNC FB dimensions after resize (Brad Campbell).
@ 2008-06-02  1:40 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-06-02  1:40 UTC (permalink / raw)
  To: qemu-devel

Revision: 4644
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4644
Author:   balrog
Date:     2008-06-02 01:40:29 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
Don't forget to save VNC FB dimensions after resize (Brad Campbell).

Modified Paths:
--------------
    trunk/vnc.c

Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c	2008-06-02 01:33:11 UTC (rev 4643)
+++ trunk/vnc.c	2008-06-02 01:40:29 UTC (rev 4644)
@@ -307,14 +307,16 @@
     ds->width = w;
     ds->height = h;
     ds->linesize = w * vs->depth;
-    if (vs->csock != -1 && vs->has_resize && size_changed) {
-	vnc_write_u8(vs, 0);  /* msg id */
-	vnc_write_u8(vs, 0);
-	vnc_write_u16(vs, 1); /* number of rects */
-	vnc_framebuffer_update(vs, 0, 0, ds->width, ds->height, -223);
-	vnc_flush(vs);
-	vs->width = ds->width;
-	vs->height = ds->height;
+    if (size_changed) {
+        vs->width = ds->width;
+        vs->height = ds->height;
+        if (vs->csock != -1 && vs->has_resize) {
+            vnc_write_u8(vs, 0);  /* msg id */
+            vnc_write_u8(vs, 0);
+            vnc_write_u16(vs, 1); /* number of rects */
+            vnc_framebuffer_update(vs, 0, 0, ds->width, ds->height, -223);
+            vnc_flush(vs);
+        }
     }
 
     memset(vs->dirty_row, 0xFF, sizeof(vs->dirty_row));

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-02  1:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02  1:40 [Qemu-devel] [4644] Don't forget to save VNC FB dimensions after resize (Brad Campbell) Andrzej Zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).