summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_xv.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-05-06 03:09:32 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-05-06 03:09:32 +0000
commit535b68fd76105ad5ae2c3c3812e6444eac9c59ce (patch)
tree17e9018a90c1d2a8bc72cddaa65170181afb943c /src/video_out/video_out_xv.c
parentbfe36df3f6502e3db75ccd33c08cdc7256dc63ec (diff)
downloadxine-lib-535b68fd76105ad5ae2c3c3812e6444eac9c59ce.tar.gz
xine-lib-535b68fd76105ad5ae2c3c3812e6444eac9c59ce.tar.bz2
implement proper x11osd resize support. that should fix problems with rc4
where parts of the image were not shown under certain circunstances. XV_AUTOPAINT_COLORKEY is now disabled by default. that will permit using colorkey overlays by default with more cards (eg. nvidia). CVS patchset: 6491 CVS date: 2004/05/06 03:09:32
Diffstat (limited to 'src/video_out/video_out_xv.c')
-rw-r--r--src/video_out/video_out_xv.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 69343972b..c12c1e01e 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.197 2004/04/26 17:50:11 mroi Exp $
+ * $Id: video_out_xv.c,v 1.198 2004/05/06 03:09:32 miguelfreitas Exp $
*
* video_out_xv.c, X11 video extension interface for xine
*
@@ -586,6 +586,10 @@ static void xv_clean_output_area (xv_driver_t *this) {
this->sc.output_xoffset, this->sc.output_yoffset,
this->sc.output_width, this->sc.output_height);
}
+
+ if (this->xoverlay)
+ x11osd_resize (this->xoverlay, this->sc.gui_width, this->sc.gui_height);
+
XUnlockDisplay (this->display);
}
@@ -1077,7 +1081,12 @@ static void xv_check_capability (xv_driver_t *this,
xprintf(this->xine, XINE_VERBOSITY_DEBUG,
"video_out_xv: port attribute %s (%d) value is %d\n", str_prop, property, int_default);
-
+
+ /* disable autopaint colorkey by default */
+ /* might be overridden using config entry */
+ if(strcmp(str_prop, "XV_AUTOPAINT_COLORKEY") == 0)
+ int_default = 0;
+
if (config_name) {
/* is this a boolean property ? */
if ((attr.min_value == 0) && (attr.max_value == 1)) {