code: remove `protected` from top-level methods (now in sys)
[nit.git] / lib / mnit_linux / linux_app.nit
index bf60ba9..440187a 100644 (file)
@@ -19,23 +19,24 @@ module linux_app
 import mnit
 import sdl
 import linux_opengles1
+import linux
 
 in "C" `{
-#include <EGL/egl.h>
+       #include <EGL/egl.h>
 `}
 
 redef class App
-       redef type IE: SDLInputEvent
        redef type D: Opengles1Display
        redef type I: Opengles1Image
 
-       redef init
+       redef fun setup
        do
+               if "NIT_TESTING".environ == "true" then exit 0
                display = new Opengles1Display
 
                super
 
-               init_window
+               window_created
        end
 
        redef fun generate_input