changeset 31362:dee765e8c4a4

More sensible behaviour for -geometry with -wid and -vo gl.
author reimar
date Tue, 15 Jun 2010 19:32:22 +0000
parents ef9098116845
children 402ad9e8caed
files libvo/vo_gl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Tue Jun 15 19:29:51 2010 +0000
+++ b/libvo/vo_gl.c	Tue Jun 15 19:32:22 2010 +0000
@@ -179,7 +179,7 @@
   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 );