changeset 5738:ef3c2f82ea70

minor changes
author alex
date Sat, 20 Apr 2002 22:58:15 +0000
parents de47aebf654c
children b7e0cf4cb7a9
files libvo/vo_xvidix.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xvidix.c	Sat Apr 20 22:24:19 2002 +0000
+++ b/libvo/vo_xvidix.c	Sat Apr 20 22:58:15 2002 +0000
@@ -51,6 +51,7 @@
 /* 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 @@
     /* 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 @@
 
 //    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 @@
     X_already_started++;
     
     /* from xmga.c */
+    bgColor = 0x0L;
     switch(vo_depthonscreen)
     {
 	case 32:
@@ -443,6 +445,8 @@
   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;