summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_xv.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 48bb172bc..c472dc2e1 100644
--- a/src/video_out/video_out_xv.c
+++ b/src/video_out/video_out_xv.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_xv.c,v 1.24 2001/05/28 12:35:54 guenter Exp $
+ * $Id: video_out_xv.c,v 1.25 2001/05/28 12:54:41 guenter Exp $
*
* video_out_xv.c, X11 video extension interface for xine
*
@@ -268,14 +268,21 @@ static void xv_adapt_to_output_area (xv_driver_t *this, int dest_x, int dest_y,
* clear unused output area
*/
+ XSetForeground (this->display, this->gc, this->black.pixel);
+
XFillRectangle(this->display, this->drawable, this->gc,
dest_x, dest_y, dest_width, this->output_yoffset - dest_y);
+
XFillRectangle(this->display, this->drawable, this->gc,
dest_x, dest_y, this->output_xoffset-dest_x, dest_height);
+
XFillRectangle(this->display, this->drawable, this->gc,
- dest_x, this->output_yoffset, dest_width, dest_height - this->output_yoffset);
+ dest_x, this->output_yoffset+this->output_height,
+ dest_width, dest_height - this->output_yoffset - this->output_height);
+
XFillRectangle(this->display, this->drawable, this->gc,
- this->output_yoffset, dest_y, dest_width - this->output_xoffset, dest_height);
+ this->output_xoffset+this->output_width, dest_y,
+ dest_width - this->output_xoffset - this->output_width, dest_height);
}