]> source.dussan.org Git - tigervnc.git/commitdiff
Check for valid framebuffer size before change.
authorwimba.com <wimba.com@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 16 Sep 2004 16:11:55 +0000 (16:11 +0000)
committerwimba.com <wimba.com@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 16 Sep 2004 16:11:55 +0000 (16:11 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2531 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/rfbplayer/VncCanvas.java

index 3b4a30b9488e64bca44522f9edf25222a6c16bfe..96e8035d75194fea887e8e6ccd961d2b9df9eb82 100644 (file)
@@ -249,8 +249,10 @@ class VncCanvas extends Canvas implements Observer {
             break;
 
           if (rfb.updateRectEncoding == rfb.EncodingNewFBSize) {
-            rfb.setFramebufferSize(rfb.updateRectW, rfb.updateRectH);
-            updateFramebufferSize();
+            if (rfb.updateRectW != 0 && rfb.updateRectH != 0) {
+              rfb.setFramebufferSize(rfb.updateRectW, rfb.updateRectH);
+              updateFramebufferSize();
+            }
             break;
           }