# HG changeset patch # User reimar # Date 1278013418 0 # Node ID a12dc8956533e07adb336b9719ca53bb72f30be7 # Parent 8797c1bd8a4380dd818f13981c0610f0093975a7 Fix -geometry with -wid behaviour (y position was flipped). diff -r 8797c1bd8a43 -r a12dc8956533 libvo/vo_gl.c --- 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 );