diff options
| author | jules <jules@okfoc.us> | 2014-01-26 02:41:35 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2014-01-26 02:41:35 -0500 |
| commit | 41c9d39a851a159d6a2e34fafb975e7c66bddf63 (patch) | |
| tree | 66e0db1f8dd242af45b73040fa3163fb7138db45 /shader-combo.html | |
| parent | b0b1b4cfbe3217b9f35343bdc35cdd058f4cf534 (diff) | |
move width/height out
Diffstat (limited to 'shader-combo.html')
| -rw-r--r-- | shader-combo.html | 10 |
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() |
