Commit b70a9eb7 authored by Cyril Deguet's avatar Cyril Deguet

* x11_api.c: implemented OSAPI_GetNonTransparentColor (needed for fonts !)

parent 4b62a084
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* x11_api.cpp: Various x11-specific functions * x11_api.cpp: Various x11-specific functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -91,7 +91,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message, ...@@ -91,7 +91,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int OSAPI_GetNonTransparentColor( int c ) int OSAPI_GetNonTransparentColor( int c )
{ {
return 0; return ( c < 10 ? 10 : c );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* x11_font.cpp: X11 implementation of the Font class * x11_font.cpp: X11 implementation of the Font class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -97,7 +97,7 @@ void X11Font::GenericPrint( Graphics *dest, string text, int x, int y, ...@@ -97,7 +97,7 @@ void X11Font::GenericPrint( Graphics *dest, string text, int x, int y,
XGCValues gcVal; XGCValues gcVal;
// Change color to avoid transparency // Change color to avoid transparency
gcVal.foreground = (color == 0 ? 10 : color); gcVal.foreground = (color < 10 ? 10 : color);
gcVal.font = font; gcVal.font = font;
XRectangle rect; XRectangle rect;
rect.x = x; rect.x = x;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment