summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-04 08:45:34 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-04 08:45:34 +0000
commit1571808a1ae90798a3bb64ee902f1d2ece768e5e (patch)
tree1d37aa24c4cf4b6e91d72334d9ed77f04c8ecd89 /libvo
parentf804def5c7ab5e41b6baf14c8530b21ec18a3fc3 (diff)
downloadmpv-1571808a1ae90798a3bb64ee902f1d2ece768e5e.tar.bz2
mpv-1571808a1ae90798a3bb64ee902f1d2ece768e5e.tar.xz
Make sure black borders are drawn when switching videos with -fixed-vo.
Alexander Strasser at LinuxTag git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18385 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index aaf77f67fd..ac199baf78 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -436,6 +436,12 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
}
panscan_calc();
+
+ vo_xv_draw_colorkey(drwX - (vo_panscan_x >> 1),
+ drwY - (vo_panscan_y >> 1),
+ vo_dwidth + vo_panscan_x - 1,
+ vo_dheight + vo_panscan_y - 1);
+
#if 0
#ifdef HAVE_SHM