summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-27 13:16:34 +0100
committerwm4 <wm4@nowhere>2013-01-27 13:32:39 +0100
commitfddba2d529c7d37b58a176525f45e5d4fc2c80b4 (patch)
tree10252ba381cf2db9a5aa0a331c69c32336521112 /video
parentdf80cd379ae2ea3fbbfd3f2a28e804b8882ea93a (diff)
downloadmpv-fddba2d529c7d37b58a176525f45e5d4fc2c80b4.tar.bz2
mpv-fddba2d529c7d37b58a176525f45e5d4fc2c80b4.tar.xz
vo_x11: fix redrawing on expose events
This part wasn't converted when changing to the new OSD redrawing way.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_x11.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index b541cbd578..26abcef332 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -68,8 +68,6 @@ struct priv {
int depth, bpp;
XWindowAttributes attribs;
- int int_pause;
-
int Flip_Flag;
int zoomFlag;
@@ -120,8 +118,8 @@ static void check_events(struct vo *vo)
vo_x11_clearwindow_part(vo, vo->x11->window,
p->myximage[p->current_buf]->width,
p->myximage[p->current_buf]->height);
- if (ret & VO_EVENT_EXPOSE && p->int_pause)
- flip_page(vo);
+ if (ret & VO_EVENT_EXPOSE)
+ vo->want_redraw = true;
}
/* Scan the available visuals on this Display/Screen. Try to find
@@ -719,12 +717,7 @@ static int preinit(struct vo *vo, const char *arg)
static int control(struct vo *vo, uint32_t request, void *data)
{
- struct priv *p = vo->priv;
switch (request) {
- case VOCTRL_PAUSE:
- return p->int_pause = 1;
- case VOCTRL_RESUME:
- return p->int_pause = 0;
case VOCTRL_FULLSCREEN:
vo_x11_fullscreen(vo);
vo_x11_clearwindow(vo, vo->x11->window);