]> git.sesse.net Git - vlc/commitdiff
* x11_api.c: implemented OSAPI_GetNonTransparentColor (needed for fonts !)
authorCyril Deguet <asmax@videolan.org>
Mon, 9 Jun 2003 22:02:13 +0000 (22:02 +0000)
committerCyril Deguet <asmax@videolan.org>
Mon, 9 Jun 2003 22:02:13 +0000 (22:02 +0000)
modules/gui/skins/x11/x11_api.cpp
modules/gui/skins/x11/x11_font.cpp

index 90f7ace781171721d97231ed7700e6b71f013404..5040187e6c1313c053428d0a34576c90565bbe38 100644 (file)
@@ -2,7 +2,7 @@
  * x11_api.cpp: Various x11-specific functions
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: x11_api.cpp,v 1.8 2003/06/07 00:36:28 asmax Exp $
+ * $Id: x11_api.cpp,v 1.9 2003/06/09 22:02:13 asmax Exp $
  *
  * Authors: Cyril Deguet  <asmax@videolan.org>
  *
@@ -91,7 +91,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message,
 //---------------------------------------------------------------------------
 int OSAPI_GetNonTransparentColor( int c )
 {
-    return 0;
+    return ( c < 10 ? 10 : c );
 }
 //---------------------------------------------------------------------------
 
index bcb77838d32d16a950a54f61ea07526721edb8cd..dcdfddf09dcfc4ff70927b22c0eec669a28ae3f8 100644 (file)
@@ -2,7 +2,7 @@
  * x11_font.cpp: X11 implementation of the Font class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: x11_font.cpp,v 1.9 2003/06/09 12:33:16 asmax Exp $
+ * $Id: x11_font.cpp,v 1.10 2003/06/09 22:02:13 asmax Exp $
  *
  * Authors: Cyril Deguet     <asmax@videolan.org>
  *
@@ -97,7 +97,7 @@ void X11Font::GenericPrint( Graphics *dest, string text, int x, int y,
 
     XGCValues gcVal;
     // Change color to avoid transparency
-    gcVal.foreground = (color == 0 ? 10 : color);
+    gcVal.foreground = (color < 10 ? 10 : color);
     gcVal.font = font;
     XRectangle rect;
     rect.x = x;