summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-27 14:12:38 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-27 14:12:38 +0000
commit26d8e6a696bbce015966e7a3c69ebc14aa38f08b (patch)
tree15021defffb59b04d9a7cc8a8dc3ca5b8701a278 /libvo
parentf10dcbacd5e436f2a177c0b5f7d28f44e4e4d145 (diff)
downloadmpv-26d8e6a696bbce015966e7a3c69ebc14aa38f08b.tar.bz2
mpv-26d8e6a696bbce015966e7a3c69ebc14aa38f08b.tar.xz
Fix video placement with -vo gl2 -fs -wid.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29565 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 6e677a6b1d..c8ffce50e5 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -427,7 +427,7 @@ static void resize(int x,int y){
panscan_calc();
x += vo_panscan_x;
y += vo_panscan_y;
- glViewport( (vo_screenwidth-x)/2, (vo_screenheight-y)/2, x, y);
+ glViewport( (vo_dwidth-x)/2, (vo_dheight-y)/2, x, y);
} else {
//aspect(x, y, A_NOZOOM);
if (WinID >= 0) {