diff options
author | LCID Fire <lcid-fire@gmx.net> | 2012-09-22 13:23:50 +0200 |
---|---|---|
committer | LCID Fire <lcid-fire@gmx.net> | 2012-09-26 01:24:17 +0200 |
commit | 074279c9f43bbc7d4b847c826722d38b76baeb44 (patch) | |
tree | aad0164c4a78edcfed8ee9b6d17980f0456d181a /src/library_xlib.js | |
parent | ac36f1a7237e1e804d7f07bed4226a3f5a3320d8 (diff) |
Implemented Browser.setCanvasSize to have a central point for resizing <canvas>
Diffstat (limited to 'src/library_xlib.js')
-rw-r--r-- | src/library_xlib.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library_xlib.js b/src/library_xlib.js index a110c786..7e420400 100644 --- a/src/library_xlib.js +++ b/src/library_xlib.js @@ -6,8 +6,7 @@ var LibraryXlib = { XCreateWindow: function(display, parent, x, y, width, height, border_width, depth, class_, visual, valuemask, attributes) { // All we can do is set the width and height - Module['canvas'].width = width; - Module['canvas'].height = height; + Browser.setCanvasSize(width, height); return 2; }, |