summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-09-18 18:25:17 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-09-18 18:25:17 +0000
commitf5c7d8c92f3f6cd6afcf05fed157a82fe280cd19 (patch)
treee590aaf8644fe8998ef00ac020a54d92341c8b5f /libvo
parent2eab60ecf3e6ace1bbe700c18ce6c73f2928ac28 (diff)
downloadmpv-f5c7d8c92f3f6cd6afcf05fed157a82fe280cd19.tar.bz2
mpv-f5c7d8c92f3f6cd6afcf05fed157a82fe280cd19.tar.xz
Use vo_w32_window directly instead of via the vo_window macro in Windows-only code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29689 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index a5e6050f44..5bbd8d15a5 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -117,7 +117,7 @@ static GLint getInternalFormat(void)
{
#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 @@ static GLint getInternalFormat(void)
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;