X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_main_android.c;h=41a1d3f4ecb2da64e4a2a71c908f76b8354d3fac;hb=6090a1ed96f3eb4c90f1f38ec9cd37ae0fe9b30e;hp=7016755da1bbdceb22f31ee79639d860ec11d951;hpb=42d3411391651bd30e99c9973470fd912cdf8b21;p=freeglut diff --git a/src/android/fg_main_android.c b/src/android/fg_main_android.c index 7016755..41a1d3f 100644 --- a/src/android/fg_main_android.c +++ b/src/android/fg_main_android.c @@ -330,7 +330,6 @@ void handle_cmd(struct android_app* app, int32_t cmd) { /* The window is being shown, get it ready. */ LOGI("handle_cmd: APP_CMD_INIT_WINDOW %p", app->window); fgDisplay.pDisplay.single_native_window = app->window; - window->State.WorkMask |= GLUT_INIT_WORK; /* start|resume: glPlatformOpenWindow was waiting for Handle to be defined and will now continue processing */ break; @@ -415,7 +414,7 @@ void fgPlatformProcessSingleEvent ( void ) if (window != NULL && window->Window.Handle != NULL) { int32_t width = ANativeWindow_getWidth(window->Window.Handle); int32_t height = ANativeWindow_getHeight(window->Window.Handle); - fghOnReshapeNotify(width,height); + fghOnReshapeNotify(window,width,height,GL_FALSE); } /* Read pending event. */