* 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>
*
//---------------------------------------------------------------------------
int OSAPI_GetNonTransparentColor( int c )
{
- return 0;
+ return ( c < 10 ? 10 : c );
}
//---------------------------------------------------------------------------
* 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>
*
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;