diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-21 22:27:40 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-21 22:27:40 +0000 |
commit | 4805ea9864ed18b123637d9aafa4f090d950d329 (patch) | |
tree | 451ecca44882aa6f9480cd23c2a6e72ecd9c9ad9 /libvo/gl_common.c | |
parent | 4198e9d45b98c7657cbddfdb74f5647e0e6c21de (diff) | |
download | mpv-4805ea9864ed18b123637d9aafa4f090d950d329.tar.bz2 mpv-4805ea9864ed18b123637d9aafa4f090d950d329.tar.xz |
Add support for Windows OpenGL rendering onto a device instead of into a window.
Has little use except for experimenting - on Windows 9x it could be used to
render on monitors that were not managed by Windows, but that feature was
removed in newer Windows versions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29946 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r-- | libvo/gl_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 67df04f5e2..141eb31bb0 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1461,7 +1461,7 @@ static void *w32gpa(const GLubyte *procName) { int setGlWindow(int *vinfo, HGLRC *context, HWND win) { int new_vinfo; - HDC windc = GetDC(win); + HDC windc = vo_w32_get_dc(win); HGLRC new_context = 0; int keep_context = 0; int res = SET_WINDOW_FAILED; @@ -1514,7 +1514,7 @@ int setGlWindow(int *vinfo, HGLRC *context, HWND win) res = SET_WINDOW_OK; out: - ReleaseDC(win, windc); + vo_w32_release_dc(win, windc); return res; } @@ -1528,9 +1528,9 @@ void releaseGlContext(int *vinfo, HGLRC *context) { } void swapGlBuffers(void) { - HDC vo_hdc = GetDC(vo_w32_window); + HDC vo_hdc = vo_w32_get_dc(vo_w32_window); SwapBuffers(vo_hdc); - ReleaseDC(vo_w32_window, vo_hdc); + vo_w32_release_dc(vo_w32_window, vo_hdc); } #else #ifdef HAVE_LIBDL |