changeset 29523:00f8d4ca123f

Fix video placement with -vo gl2 -fs -wid.
author reimar
date Thu, 27 Aug 2009 14:12:38 +0000
parents 26ca161275d6
children b1a437cdc60d
files libvo/vo_gl2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl2.c	Thu Aug 27 14:10:38 2009 +0000
+++ b/libvo/vo_gl2.c	Thu Aug 27 14:12:38 2009 +0000
@@ -427,7 +427,7 @@
     panscan_calc();
     x += vo_panscan_x;
     y += vo_panscan_y;
-    glViewport( (vo_screenwidth-x)/2, (vo_screenheight-y)/2, x, y);
+    glViewport( (vo_dwidth-x)/2, (vo_dheight-y)/2, x, y);
   } else {
     //aspect(x, y, A_NOZOOM);
     if (WinID >= 0) {