[MPlayer-dev-eng] [PATCH] Fix windows background clearing.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu May 26 21:18:05 CEST 2011


On Thu, May 26, 2011 at 12:16:47AM +0300, Ivan Kalvachev wrote:
> I also removed the vo_x11_clearwindow_part() usage from vo_x11. Now
> the whole windows would be cleared not only on resize but also on
> expose. While it would cause flicker it would at least clear the whole
> window.

Calling flip_page every time is not a good idea, it causes horrible
performance both when slowly resizing the window and when dragging
a different window over the video window.
It was done on only on pause before for a very good reason.
(I suspect there was also a reason why it was only done on expose
and not resize, but I am not as certain there it was a good one).

> I have added explicit clearwindow and on window creation.

Might make sense to move that into the function that creates the window,
shouldn't really hurt.


More information about the MPlayer-dev-eng mailing list