vo_gl: More sensible behaviour for -geometry with -wid

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31428 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-06-15 19:32:22 +00:00 committed by Uoti Urpala
parent ebbf5fb7a2
commit c107c484b6
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ 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_screenwidth, vo_screenheight);
geometry(&top, &left, &w, &h, vo_dwidth, vo_dheight);
mpglViewport(top, left, w, h);
} else
mpglViewport( 0, 0, x, y );