From 41c9d39a851a159d6a2e34fafb975e7c66bddf63 Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 26 Jan 2014 02:41:35 -0500 Subject: move width/height out --- shader-combo.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'shader-combo.html') diff --git a/shader-combo.html b/shader-combo.html index e61beee..0a5fcab 100644 --- a/shader-combo.html +++ b/shader-combo.html @@ -193,6 +193,16 @@ function init(){ $("#header .form").hide() $(".bold").removeClass("bold") }) + $("#width").change(function(){ + w = abs(parseInt(this.value,10)) || 1 + cc.canvas.width = w + cc.canvas.height = h + }) + $("#height").change(function(){ + h = abs(parseInt(this.value,10)) || 1 + cc.canvas.width = w + cc.canvas.height = h + }) frame_editor.init() help.init() -- cgit v1.2.3-70-g09d2