changeset 29647:e788d48bf768

Use vo_w32_window directly instead of via the vo_window macro in Windows-only code.
author reimar
date Fri, 18 Sep 2009 18:25:17 +0000
parents 11b5e67d05a3
children 74f94f407c31
files libvo/vo_gl2.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl2.c	Fri Sep 18 16:51:19 2009 +0000
+++ b/libvo/vo_gl2.c	Fri Sep 18 18:25:17 2009 +0000
@@ -117,7 +117,7 @@
 {
 #ifdef GL_WIN32
   PIXELFORMATDESCRIPTOR pfd;
-  HDC vo_hdc = GetDC(vo_window);
+  HDC vo_hdc = GetDC(vo_w32_window);
   int pf = GetPixelFormat(vo_hdc);
   if (!DescribePixelFormat(vo_hdc, pf, sizeof pfd, &pfd)) {
     r_sz = g_sz = b_sz = a_sz = 0;
@@ -127,7 +127,7 @@
     b_sz = pfd.cBlueBits;
     a_sz = pfd.cAlphaBits;
   }
-  ReleaseDC(vo_window, vo_hdc);
+  ReleaseDC(vo_w32_window, vo_hdc);
 #else
   if (glXGetConfig(mDisplay, gl_vinfo, GLX_RED_SIZE, &r_sz) != 0) r_sz = 0;
   if (glXGetConfig(mDisplay, gl_vinfo, GLX_GREEN_SIZE, &g_sz) != 0) g_sz = 0;