Merge: example: add 24 game task of Rosetta code
[nit.git] / lib / mnit_android / android_opengles1.nit
index aa22193..71e59aa 100644 (file)
@@ -16,9 +16,8 @@
 
 # Adapts OpenGL ES 1.0 for use on Android by offering services to get
 # a handler to the native display and window.
-module android_opengles1
+module android_opengles1 is ldflags "-lEGL -lGLESv1_CM"
 
-import mnit
 import android_app
 import android
 
@@ -31,7 +30,7 @@ in "C" `{
 
 redef class Opengles1Display
        redef fun midway_init(format) import app_native_window `{
-               mnit_window = Opengles1Display_app_native_window(recv);
+               mnit_window = Opengles1Display_app_native_window(self);
                if (ANativeWindow_setBuffersGeometry(mnit_window, 0, 0, (EGLint)format) != 0) {
                        LOGW("Unable to ANativeWindow_setBuffersGeometry");
                }