diff --git a/include/display.js b/include/display.js index 9f2d6b89..d15c99e5 100644 --- a/include/display.js +++ b/include/display.js @@ -396,13 +396,13 @@ that.absY = function(y) { that.resize = function(width, height) { - c_prevStyle = ""; + c_prevStyle = ""; fb_width = width; fb_height = height; rescale(conf.scale); - that.viewportChange(); + that.viewportChange(0, 0, width, height); }; that.clear = function() { diff --git a/include/ui.js b/include/ui.js index 21b4f8b9..b24bd9c7 100644 --- a/include/ui.js +++ b/include/ui.js @@ -21,7 +21,7 @@ window.onresize = function () { // the resolution of the session clearTimeout(resizeTimeout); resizeTimeout = setTimeout(function(){ - UI.onresize(); + UI.onresize(); }, 500); };