diff options
author | 2011-07-06 08:24:20 +0300 | |
---|---|---|
committer | 2011-07-06 08:36:46 +0300 | |
commit | aeafa7a2b46e8ee84c9fe277d9cc6f14666a0465 (patch) | |
tree | 7f1561a1d0ed83b004e80b8144aac4921e2e8498 /libvo/vo_x11.c | |
parent | 9298acdd605c49eeec6e8b6dc4b2a33b2aab40b5 (diff) |
vo_xv: avoid clearing too much on resize
vo_xv set the "use_fs" parameter to vo_x11_clearwindow_part(). This
meant it always used the whole screen size to calculate the area to
clear. I can't see why overriding the vo->dwidth/dheight values would
ever be the right thing to do (if in fullscreen they should be set to
match that), so remove the use_fs parameter and always use the
dwidth/dheight values in the function. Also delete code drawing back
borders in vo_xv_draw colorkey. That should already happen in
vo_x11_clearwindow_part(); if it doesn't then things need to be fixed
anyway because colorkey code only ran in fullscreen mode (but borders
must work in window mode too).
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 8e34503bb9..9be47c9d8a 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -103,7 +103,7 @@ static void check_events(void) vo_x11_clearwindow(mDisplay, vo_window); else if (ret & VO_EVENT_EXPOSE) vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width, - myximage->height, 0); + myximage->height); if (ret & VO_EVENT_EXPOSE && int_pause) flip_page(); } |