summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xvidix.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-20 22:58:15 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-20 22:58:15 +0000
commit73740548f84072b96d2c573ec8835fdb058a17a0 (patch)
tree5764e3ef1a200aacc7604608c3466a115f701785 /libvo/vo_xvidix.c
parenta06d814fb935869064f79fdc77ca3235fed1bf30 (diff)
downloadmpv-73740548f84072b96d2c573ec8835fdb058a17a0.tar.bz2
mpv-73740548f84072b96d2c573ec8835fdb058a17a0.tar.xz
minor changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5739 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xvidix.c')
-rw-r--r--libvo/vo_xvidix.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c
index 0587b26a48..cd600c8cd5 100644
--- a/libvo/vo_xvidix.c
+++ b/libvo/vo_xvidix.c
@@ -51,6 +51,7 @@ static int X_already_started = 0;
/* Colorkey handling */
static XGCValues mGCV;
static uint32_t fgColor;
+static uint32_t bgColor;
static vidix_grkey_t gr_key;
/* VIDIX related */
@@ -153,7 +154,7 @@ static void set_window(int force_update,const vo_tune_info_t *info)
/* mDrawColorKey: */
/* fill drawable with specified color */
- XSetBackground( mDisplay,vo_gc,0 );
+ XSetBackground( mDisplay,vo_gc,bgColor );
XClearWindow( mDisplay,vo_window );
XSetForeground(mDisplay, vo_gc, fgColor);
XFillRectangle(mDisplay, vo_window, vo_gc, drwX, drwY, drwWidth,
@@ -179,7 +180,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
// if (title)
// free(title);
- title = strdup("MPlayer VIDIX X11 Overlay");
+ title = "MPlayer VIDIX X11 Overlay";
image_height = height;
image_width = width;
@@ -234,6 +235,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
X_already_started++;
/* from xmga.c */
+ bgColor = 0x0L;
switch(vo_depthonscreen)
{
case 32:
@@ -443,6 +445,8 @@ static uint32_t control(uint32_t request, void *data, ...)
switch (request) {
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t*)data));
+ case VOCTRL_GUISUPPORT:
+ return VO_TRUE;
case VOCTRL_FULLSCREEN:
vo_x11_fullscreen();
return VO_TRUE;