diff libvo/gl_common.c @ 36076:e0a9f63abfdd

Remove some nonsense code, align with X11 implementation.
author reimar
date Thu, 11 Apr 2013 19:23:50 +0000
parents 3be8afb83629
children 10a63b5e6513
line wrap: on
line diff
--- 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;
 }