Browse files

Listen for DrawEvent, not TickEvent.

  • Loading branch information...
1 parent c7b304c commit 09274ccf5774e24dc62fe0726b8170c607e55ab2 @jacius committed Jun 8, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/03_rectangle_demo.rb
View
2 demos/03_rectangle_demo.rb
@@ -25,7 +25,7 @@
:action => BlockAction.new { rect.draw(view) } )
# Register to receive TickEvents from the event manager.
-evm.register_listener( rect, TickEvent )
+evm.register_listener( rect, DrawEvent )
catch :quit do
loop do

0 comments on commit 09274cc

Please sign in to comment.