From ee6e6c5a26ddde28324cdb9932f3a8d3738829ad Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 28 May 2001 12:54:41 +0000 Subject: aspect ratio fixes once again CVS patchset: 91 CVS date: 2001/05/28 12:54:41 --- src/video_out/video_out_xv.c | 13 ++++++++++--- 1 file 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); } -- cgit v1.2.3