summaryrefslogtreecommitdiff
path: root/shader-combo.html
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-01-26 02:41:35 -0500
committerjules <jules@okfoc.us>2014-01-26 02:41:35 -0500
commit41c9d39a851a159d6a2e34fafb975e7c66bddf63 (patch)
tree66e0db1f8dd242af45b73040fa3163fb7138db45 /shader-combo.html
parentb0b1b4cfbe3217b9f35343bdc35cdd058f4cf534 (diff)
move width/height out
Diffstat (limited to 'shader-combo.html')
-rw-r--r--shader-combo.html10
1 files changed, 10 insertions, 0 deletions
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()