Skip to content

Commit

Permalink
Listen for DrawEvent, not TickEvent.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacius committed Jun 8, 2008
1 parent c7b304c commit 09274cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/03_rectangle_demo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09274cc

Please sign in to comment.