Clear the whole window on resize in vo_x11 since we do not

yet know how large the borders will be.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28011 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-11-23 20:49:05 +00:00
parent 7428efabee
commit 6c3457bd0e
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ static void check_events(void)
{
int ret = vo_x11_check_events(mDisplay);
if ((ret & VO_EVENT_RESIZE) || (ret & VO_EVENT_EXPOSE))
if (ret & VO_EVENT_RESIZE)
vo_x11_clearwindow(mDisplay, vo_window);
else if (ret & VO_EVENT_EXPOSE)
vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width,
myximage->height, 0);
if (ret & VO_EVENT_EXPOSE && int_pause)