summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-12 14:11:26 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-12 14:11:26 +0000
commitd96b09cd64e8bb8a473b39e965e70bdeda4023df (patch)
tree616e7c2b2242a7dca378888d2dd2cef17097c47e /libvo/vo_gl2.c
parent27ea82157718ebafa1f68a3b517a2e1d18d2f370 (diff)
downloadmpv-d96b09cd64e8bb8a473b39e965e70bdeda4023df.tar.bz2
mpv-d96b09cd64e8bb8a473b39e965e70bdeda4023df.tar.xz
fixes and cleanup for windows fullscreen switching (restore old position,
fullscreen on current monitor). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18080 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r--libvo/vo_gl2.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 6b5396a855..94e946a7fc 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -595,15 +595,7 @@ static void draw_alpha_null(int x0,int y0, int w,int h, unsigned char* src, unsi
#ifdef GL_WIN32
static int config_w32(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) {
- o_dwidth = d_width;
- o_dheight = d_height;
- vo_fs = flags & VOFLAG_FULLSCREEN;
- vo_vm = flags & VOFLAG_MODESWITCHING;
-
- vo_dwidth = d_width;
- vo_dheight = d_height;
-
- if (!createRenderingContext())
+ if (!vo_w32_config(d_width, d_height, flags))
return -1;
if (vo_fs)