[MPlayer-cvslog] r31600 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Thu Jul 1 21:43:38 CEST 2010
Author: reimar
Date: Thu Jul 1 21:43:38 2010
New Revision: 31600
Log:
Fix -geometry with -wid behaviour (y position was flipped).
Modified:
trunk/libvo/vo_gl.c
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c Thu Jul 1 19:47:25 2010 (r31599)
+++ trunk/libvo/vo_gl.c Thu Jul 1 21:43:38 2010 (r31600)
@@ -178,9 +178,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 );
More information about the MPlayer-cvslog
mailing list