# HG changeset patch # User reimar # Date 1365708230 0 # Node ID e0a9f63abfdd9a6a41945ac144c733fe271e11ac # Parent b14ea6320969e7a94c0d30267e7a2c6ca4a78e37 Remove some nonsense code, align with X11 implementation. diff -r b14ea6320969 -r e0a9f63abfdd libvo/gl_common.c --- a/libvo/gl_common.c Fri Apr 05 14:24:54 2013 +0000 +++ b/libvo/gl_common.c Thu Apr 11 19:23:50 2013 +0000 @@ -1913,11 +1913,10 @@ 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 @@ } // 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 @@ res = SET_WINDOW_OK; out: - vo_w32_release_dc(win, windc); + vo_w32_release_dc(vo_w32_window, windc); return res; }