summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_gl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 6e677a6b1d..c8ffce50e5 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -427,7 +427,7 @@ static void resize(int x,int y){
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) {