summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-25 08:35:35 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-25 08:35:35 +0000
commita83117e972f528ceead87b70b249a5e233d4f13b (patch)
tree8ee3221cc24de7e9e23df13cfe2b4342c97e06cd /libvo/vo_gl.c
parent7c2bef4bb5a3275dc2e3fb75dfeb03ac1f1b5755 (diff)
downloadmpv-a83117e972f528ceead87b70b249a5e233d4f13b.tar.bz2
mpv-a83117e972f528ceead87b70b249a5e233d4f13b.tar.xz
Window resizing support for -vo gl with SDL backend.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31075 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 7d48e35d22..e6b14eb0e6 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -598,13 +598,8 @@ static int create_window(uint32_t d_width, uint32_t d_height, uint32_t flags, co
#endif
#ifdef CONFIG_GL_SDL
if (glctx.type == GLTYPE_SDL) {
- SDL_Surface *s = SDL_SetVideoMode(d_width, d_height, 0, SDL_OPENGL | SDL_RESIZABLE);
- if (!s) {
- mp_msg(MSGT_VO, MSGL_FATAL, "SDL SetVideoMode failed: %s\n", SDL_GetError());
- return -1;
- }
- vo_dwidth = s->w;
- vo_dheight = s->h;
+ vo_dwidth = d_width;
+ vo_dheight = d_height;
}
#endif
return 0;