summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-09 09:25:41 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-09 09:25:41 +0000
commit0f85b371fd7d6267f12257278a863befbda65ad7 (patch)
tree58991f8cc3cc7dfeb325e567b2fd4b4d3eb2719f /libvo/vo_gl.c
parentc3e61295b6d02a2eebe2cf919280c62ac8b642fd (diff)
downloadmpv-0f85b371fd7d6267f12257278a863befbda65ad7.tar.bz2
mpv-0f85b371fd7d6267f12257278a863befbda65ad7.tar.xz
set the window aspect hint
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23525 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index d56eef6513..6f0e684c85 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -506,6 +506,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
XSelectInput(mDisplay, vo_window, StructureNotifyMask);
/* Tell other applications about this window */
XSetStandardProperties(mDisplay, vo_window, title, title, None, NULL, 0, &hint);
+ /* Set the size hints. */
+ vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0);
/* Map window. */
XMapWindow(mDisplay, vo_window);