examples/mnit_ballz: fix call on nullable receiver warnings
[nit.git] / examples / mnit_ballz / src / ballz_android.nit
index dc934e7..ee41e9c 100644 (file)
@@ -38,7 +38,7 @@ redef class App
                gyroscope.enabled = true
                light.enabled = true
                proximity.enabled = true
-               maximum_fps = 50
+               maximum_fps = 50.0
                sensors_support_enabled = true
                super
        end
@@ -46,6 +46,7 @@ redef class App
        redef fun on_create
        do
                super
+               var display = self.display.as(not null)
                game = new Game(display.width.to_f, display.height.to_f)
        end