Permalink
Browse files

need to make sure that @render_mode is defined, at least defaulted

  • Loading branch information...
1 parent 6df452c commit e84645b5935bb9a5fc817c2021099499165388e1 @jashkenas committed Mar 27, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ruby-processing/app.rb
View
1 lib/ruby-processing/app.rb
@@ -179,6 +179,7 @@ def initialize(options={})
@width = options[:width] || DEFAULT_WIDTH
@height = options[:height] || DEFAULT_HEIGHT
@title = options[:title] || File.basename(Processing::SKETCH_PATH, '.rb').titleize
+ @render_mode ||= JAVA2D
@@full_screen ||= options[:full_screen]
self.init
determine_how_to_display

0 comments on commit e84645b

Please sign in to comment.