summaryrefslogtreecommitdiffstats
path: root/libvo/vo_opengl_old.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_opengl_old.c')
-rw-r--r--libvo/vo_opengl_old.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libvo/vo_opengl_old.c b/libvo/vo_opengl_old.c
index d68ea3c5d5..b8b1fd4813 100644
--- a/libvo/vo_opengl_old.c
+++ b/libvo/vo_opengl_old.c
@@ -115,13 +115,7 @@ static void resize(struct vo *vo, int x, int y)
GL *gl = p->gl;
mp_msg(MSGT_VO, MSGL_V, "[gl] Resize: %dx%d\n", x, y);
- if (WinID >= 0) {
- int left = 0, top = 0, w = x, h = y;
- geometry(&left, &top, &w, &h, vo->dwidth, vo->dheight);
- top = y - h - top;
- gl->Viewport(left, top, w, h);
- } else
- gl->Viewport(0, 0, x, y);
+ gl->Viewport(0, 0, x, y);
gl->MatrixMode(GL_PROJECTION);
gl->LoadIdentity();