X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_runtime_android.c;h=1b92bf6256d261b56a6546abc132e3846c152462;hb=09eddda3036fb0ee72677b0e206b492aa7f0be6d;hp=e83c2d3137831a7131ef29e4b6734880aaaf8d55;hpb=7fbb15bc63c7937cab772bd942883e3811acbabf;p=freeglut diff --git a/src/android/fg_runtime_android.c b/src/android/fg_runtime_android.c index e83c2d3..1b92bf6 100644 --- a/src/android/fg_runtime_android.c +++ b/src/android/fg_runtime_android.c @@ -1,5 +1,5 @@ /* - * freeglut_runtime_android.c + * fg_runtime_android.c * * Android runtime * @@ -23,7 +23,7 @@ * 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 * @@ -78,7 +78,6 @@ static void onNativeWindowResized(ANativeActivity* activity, ANativeWindow* wind static void onNativeWindowRedrawNeeded(ANativeActivity* activity, ANativeWindow* window) { LOGI("onNativeWindowRedrawNeeded: %p\n", (void*)activity); struct android_app* app = (struct android_app*)activity->instance; - //if (fgDisplay.pDisplay.single_window->Window.pContext.eglSurface != EGL_NO_SURFACE) android_app_write_cmd(app, APP_CMD_WINDOW_RESIZED); } @@ -138,7 +137,7 @@ static void extract_assets(struct android_app* app) { void android_main(struct android_app* app) { LOGI("android_main"); - // Register window resize callback + /* Register window resize callback */ app->activity->callbacks->onNativeWindowResized = onNativeWindowResized; app->activity->callbacks->onContentRectChanged = onContentRectChanged; app->activity->callbacks->onNativeWindowRedrawNeeded = onNativeWindowRedrawNeeded;