vo_xv: avoid clearing too much on resize
commitaeafa7a2b46e8ee84c9fe277d9cc6f14666a0465
authorUoti Urpala <uau@mplayer2.org>
Wed, 6 Jul 2011 05:24:20 +0000 (6 08:24 +0300)
committerUoti Urpala <uau@mplayer2.org>
Wed, 6 Jul 2011 05:36:46 +0000 (6 08:36 +0300)
tree7f1561a1d0ed83b004e80b8144aac4921e2e8498
parent9298acdd605c49eeec6e8b6dc4b2a33b2aab40b5
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).
libvo/vo_x11.c
libvo/vo_xv.c
libvo/x11_common.c
libvo/x11_common.h