(Android) Implement gfx_ctx_get_video_size

This commit is contained in:
twinaphex 2012-10-16 14:31:18 +02:00
parent 608d3718a3
commit 5977ab5be1

View File

@ -271,6 +271,16 @@ static void gfx_ctx_get_video_size(unsigned *width, unsigned *height)
{
(void)width;
(void)height;
if (g_egl_dpy)
{
EGLint gl_width;
EGLint gl_height;
eglQuerySurface(g_egl_dpy, g_egl_surf, EGL_WIDTH, &gl_width);
eglQuerySurface(g_egl_dpy, g_egl_surf, EGL_HEIGHT, &gl_height);
*width = gl_width;
*height = gl_height;
}
}