summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index e376e260f4..3730059ffa 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -650,6 +650,10 @@ glconfig:
static void check_events(void)
{
int e=glctx.check_events();
+ if(e&VO_EVENT_REINIT) {
+ uninitGl();
+ initGl(vo_dwidth, vo_dheight);
+ }
if(e&VO_EVENT_RESIZE) resize(vo_dwidth,vo_dheight);
if(e&VO_EVENT_EXPOSE && int_pause) redraw();
}