X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_main_android.c;h=41a1d3f4ecb2da64e4a2a71c908f76b8354d3fac;hb=6090a1ed96f3eb4c90f1f38ec9cd37ae0fe9b30e;hp=77e43b3534ab61a6f98f4607be91e0d22296e282;hpb=c2de6d3474dc0c697fa0d5c9fd84988896a077ef;p=freeglut diff --git a/src/android/fg_main_android.c b/src/android/fg_main_android.c index 77e43b3..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. */ @@ -465,7 +464,7 @@ void fgPlatformProcessSingleEvent ( void ) * be not possible to ensure InitContext CB gets called before * Resume CB like that.. so maybe just force calling initContext CB * here is best. Or we could force work on the window in question.. - * 1) save old work mask, 2) set mask to init only, 3) call fgPlatformProcessWork directly + * 1) save old work mask, 2) set mask to init only, 3) call fgProcessWork directly * 4) set work mask back to the one saved in step 1. */ if (!FETCH_WCB(*window, InitContext))