]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix fbUpdateRequest undefined parameter logic.
authorJoel Martin <github@martintribe.org>
Wed, 14 Sep 2011 15:42:15 +0000 (10:42 -0500)
committerJoel Martin <github@martintribe.org>
Wed, 14 Sep 2011 15:42:15 +0000 (10:42 -0500)
include/rfb.js

index 52463cb8394a7f4236953f1bf21e36e305eca689..7cca8e607bc83887255eece51827de91f131bab0 100644 (file)
@@ -1414,10 +1414,10 @@ clientEncodings = function() {
 
 fbUpdateRequest = function(incremental, x, y, xw, yw) {
     //Util.Debug(">> fbUpdateRequest");
-    if (typeof(x) !== "undefined") { x = 0; }
-    if (typeof(y) !== "undefined") { y = 0; }
-    if (typeof(xw) !== "undefined") { xw = fb_width; }
-    if (typeof(yw) !== "undefined") { yw = fb_height; }
+    if (typeof(x) === "undefined") { x = 0; }
+    if (typeof(y) === "undefined") { y = 0; }
+    if (typeof(xw) === "undefined") { xw = fb_width; }
+    if (typeof(yw) === "undefined") { yw = fb_height; }
     var arr;
     arr = [3];  // msg-type
     arr.push8(incremental);