[MPlayer-cvslog] r36170 - trunk/libvo/gl_common.c
reimar
subversion at mplayerhq.hu
Thu Apr 11 21:23:51 CEST 2013
Author: reimar
Date: Thu Apr 11 21:23:50 2013
New Revision: 36170
Log:
Remove some nonsense code, align with X11 implementation.
Modified:
trunk/libvo/gl_common.c
Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c Fri Apr 5 16:24:54 2013 (r36169)
+++ trunk/libvo/gl_common.c Thu Apr 11 21:23:50 2013 (r36170)
@@ -1913,11 +1913,10 @@ static void *w32gpa(const GLubyte *procN
static int setGlWindow_w32(MPGLContext *ctx)
{
- HWND win = vo_w32_window;
int *vinfo = &ctx->vinfo.w32;
HGLRC *context = &ctx->context.w32;
int new_vinfo;
- HDC windc = vo_w32_get_dc(win);
+ HDC windc = vo_w32_get_dc(vo_w32_window);
HGLRC new_context = 0;
int keep_context = 0;
int res = SET_WINDOW_FAILED;
@@ -1950,10 +1949,9 @@ static int setGlWindow_w32(MPGLContext *
}
// set new values
- vo_w32_window = win;
{
RECT rect;
- GetClientRect(win, &rect);
+ GetClientRect(vo_w32_window, &rect);
vo_dwidth = rect.right;
vo_dheight = rect.bottom;
}
@@ -1970,7 +1968,7 @@ static int setGlWindow_w32(MPGLContext *
res = SET_WINDOW_OK;
out:
- vo_w32_release_dc(win, windc);
+ vo_w32_release_dc(vo_w32_window, windc);
return res;
}
More information about the MPlayer-cvslog
mailing list