changeset 36076:e0a9f63abfdd

Remove some nonsense code, align with X11 implementation.
author reimar
date Thu, 11 Apr 2013 19:23:50 +0000
parents b14ea6320969
children bb7b0b97c1e4
files libvo/gl_common.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
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;
 }