examples/bounce.rb in fxruby-enhancement-0.1.0 vs examples/bounce.rb in fxruby-enhancement-0.2.0
- old
+ new
@@ -78,17 +78,19 @@
end
fx_app :app do
app_name "Bounce"
vendor_name "Example"
-
- fx_image(:back_buffer) { opts IMAGE_KEEP }
fx_main_window(:bounce_window) {
title "Bounce Demo"
opts DECOR_ALL
width 400
height 300
+
+ as (:app) {
+ fx_image(:back_buffer) { opts IMAGE_KEEP }
+ }
instance { |w|
def w.ball
@ball ||= Ball.new(20)
end