lib/joyce/application_view.rb in joyce-0.2.4 vs lib/joyce/application_view.rb in joyce-0.2.5
- old
+ new
@@ -13,10 +13,14 @@
def window
@application.window
end
def font
- @font ||= Gosu::Font.new(20)
+ @font ||= if defined?(Gosu)
+ Gosu::Font.new(20)
+ else
+ nil # NullFont?
+ end
end
def mouse_position
window.mouse_position
end