From 6249e68467007ed2c042151fad03f463d9bf96a3 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Mon, 9 Dec 2013 20:18:51 -0800 Subject: [PATCH] Android default screen resolution. --- src/glcontext_egl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glcontext_egl.cpp b/src/glcontext_egl.cpp index 775f6d6a..60fe4f49 100644 --- a/src/glcontext_egl.cpp +++ b/src/glcontext_egl.cpp @@ -16,7 +16,7 @@ namespace bgfx # include "glimports.h" # undef GL_IMPORT - void GlContext::create(uint32_t /*_width*/, uint32_t /*_height*/) + void GlContext::create(uint32_t _width, uint32_t _height) { EGLNativeDisplayType ndt = EGL_DEFAULT_DISPLAY; EGLNativeWindowType nwt = (EGLNativeWindowType)NULL; @@ -54,7 +54,7 @@ namespace bgfx # if BX_PLATFORM_ANDROID EGLint format; eglGetConfigAttrib(m_display, config, EGL_NATIVE_VISUAL_ID, &format); - ANativeWindow_setBuffersGeometry(g_bgfxAndroidWindow, 0, 0, format); + ANativeWindow_setBuffersGeometry(g_bgfxAndroidWindow, _width, _height, format); nwt = g_bgfxAndroidWindow; # endif // BX_PLATFORM_ANDROID