diff options
Diffstat (limited to 'js/render.js')
| -rw-r--r-- | js/render.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/render.js b/js/render.js index 68554cb..955f525 100644 --- a/js/render.js +++ b/js/render.js @@ -6,6 +6,7 @@ var preserve_dimensions = true; function choose (){ loading = true + preserve_dimensions = false $("#url").val(this.src) loadImage(this.src, ready) reset() @@ -27,7 +28,7 @@ function ready(){ frame = gif.frames[0] cc.canvas.width = frame.ctx.canvas.width cc.canvas.height = frame.ctx.canvas.height - if (preserve_dimensions) { + if (! preserve_dimensions) { actual_w = w = cc.canvas.width actual_h = h = cc.canvas.height } @@ -41,7 +42,7 @@ function ready(){ frame = img_frame = { ctx: fc.context } cc.canvas.width = frame.ctx.canvas.width cc.canvas.height = frame.ctx.canvas.height - if (preserve_dimensions) { + if (! preserve_dimensions) { actual_w = w = cc.canvas.width actual_h = h = cc.canvas.height } |
