diff options
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() |
