summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-01 19:43:38 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:13:00 +0200
commit30d7c19b6904a516f43d65b5ac3b01f8b208975c (patch)
tree1af327c736b5665a297d1f7c6f223ca31615d8fd /libvo
parentd1455cac3c3ee810023cefc127bb237a764e577a (diff)
downloadmpv-30d7c19b6904a516f43d65b5ac3b01f8b208975c.tar.bz2
mpv-30d7c19b6904a516f43d65b5ac3b01f8b208975c.tar.xz
vo_gl: Fix -geometry with -wid behaviour (y position was flipped)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31600 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index c57285c922..3bb5834be4 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -197,9 +197,10 @@ static void redraw(void);
static void resize(int x,int y){
mp_msg(MSGT_VO, MSGL_V, "[gl] Resize: %dx%d\n",x,y);
if (WinID >= 0) {
- int top = 0, left = 0, w = x, h = y;
- geometry(&top, &left, &w, &h, vo_dwidth, vo_dheight);
- mpglViewport(top, left, w, h);
+ int left = 0, top = 0, w = x, h = y;
+ geometry(&left, &top, &w, &h, vo_dwidth, vo_dheight);
+ top = y - h - top;
+ mpglViewport(left, top, w, h);
} else
mpglViewport( 0, 0, x, y );