lib/processing/window.rb in processing-0.5.23 vs lib/processing/window.rb in processing-0.5.24
- old
+ new
@@ -94,9 +94,10 @@
def on_move(e)
draw_canvas {call_block @move, e} if @move
end
def on_resize(e)
+ resize_canvas e.width, e.height if @auto_resize
draw_canvas {call_block @resize, e} if @resize
end
def on_motion(e)
draw_canvas {call_block @motion, e} if @motion