* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/* Parts taken from Android NDK's 'native-activity' sample : */
+/* Parts taken from Android NDK's 'native-activity' sample: */
/*
* Copyright (C) 2010 The Android Open Source Project
*
GLboolean sizeUse, int w, int h,
GLboolean gameMode, GLboolean isSubWindow )
{
- printf("fgPlatformOpenWindow %p ID=%d\n", (void*)window, window->ID);
+ // printf("fgPlatformOpenWindow %p ID=%d\n", (void*)window, window->ID);
/* TODO: only one full-screen window possible? */
static int nb_windows = 0;
if (nb_windows == 0) {
nb_windows++;
fgDisplay.pDisplay.single_window = window;
- printf("=> %p ID=%d\n", (void*)fgDisplay.pDisplay.single_window, fgDisplay.pDisplay.single_window->ID);
+ // printf("=> %p ID=%d\n", (void*)fgDisplay.pDisplay.single_window, fgDisplay.pDisplay.single_window->ID);
} else {
return;
}
EGLint vid;
eglGetConfigAttrib(display, window->Window.pContext.egl.Config,
EGL_NATIVE_VISUAL_ID, &vid);
-
ANativeWindow_setBuffersGeometry(window->Window.Handle, 0, 0, vid);
+
fghPlatformOpenWindowEGL(window);
window->State.Visible = GL_TRUE;