Mercurial > mplayer.hg
changeset 31534:a12dc8956533
Fix -geometry with -wid behaviour (y position was flipped).
author | reimar |
---|---|
date | Thu, 01 Jul 2010 19:43:38 +0000 |
parents | 8797c1bd8a43 |
children | 749835ce19dc |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Thu Jul 01 17:47:25 2010 +0000 +++ b/libvo/vo_gl.c Thu Jul 01 19:43:38 2010 +0000 @@ -178,9 +178,10 @@ 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 );