# HG changeset patch # User reimar # Date 1353854441 0 # Node ID b85d632c3fe1034b98285a205c4718d204c1fcc9 # Parent 746e2e0577b2f6c583ef1847f2f3fa7a313f9be2 vo_gl: react to expose events even when not paused. This improves behaviour for slideshows, though it will cause worse performance when there are a lot of expose events (e.g. when dragging some other window over the video window, or when no hardware mouse support is available). diff -r 746e2e0577b2 -r b85d632c3fe1 libvo/vo_gl.c --- a/libvo/vo_gl.c Sun Nov 25 14:38:58 2012 +0000 +++ b/libvo/vo_gl.c Sun Nov 25 14:40:41 2012 +0000 @@ -151,7 +151,6 @@ static int stipple; static enum MPGLType backend; -static int int_pause; static int eq_bri = 0; static int eq_cont = 0; static int eq_sat = 0; @@ -711,7 +710,6 @@ is_yuv |= (xs << 8) | (ys << 16); glFindFormat(format, NULL, &gl_texfmt, &gl_format, &gl_type); - int_pause = 0; vo_flipped = !!(flags & VOFLAG_FLIPPING); if (create_window(d_width, d_height, flags, title) < 0) @@ -741,7 +739,7 @@ initGl(vo_dwidth, vo_dheight); } if(e&VO_EVENT_RESIZE) resize(vo_dwidth,vo_dheight); - if(e&VO_EVENT_EXPOSE && int_pause) redraw(); + else if(e&VO_EVENT_EXPOSE) redraw(); } /** @@ -1422,10 +1420,6 @@ static int control(uint32_t request, void *data) { switch (request) { - case VOCTRL_PAUSE: - case VOCTRL_RESUME: - int_pause = (request == VOCTRL_PAUSE); - return VO_TRUE; case VOCTRL_QUERY_FORMAT: return query_format(*(uint32_t*)data); case VOCTRL_GET_IMAGE: