- create_bitmap(): setting Amask to 0x0 makes other colors visible

- fixed headerbar colors (X look)
This commit is contained in:
Volker Ruppert 2002-03-17 16:57:07 +00:00
parent 3ec4af94b4
commit 37955596f8
2 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: sdl.cc,v 1.13 2002-03-17 12:34:03 vruppert Exp $
// $Id: sdl.cc,v 1.14 2002-03-17 16:57:07 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -630,7 +630,6 @@ void bx_gui_c::dimension_update(
BX_HEADERBAR_FG_RED,
BX_HEADERBAR_FG_GREEN,
BX_HEADERBAR_FG_BLUE );
headerbar_fg=0xffffffff;
headerbar_bg = SDL_MapRGB(
sdl_screen->format,
BX_HEADERBAR_BG_RED,
@ -678,12 +677,12 @@ unsigned bx_gui_c::create_bitmap(
0xff000000,
0x00ff0000,
0x0000ff00,
0x000000ff
0x00000000
#else
0x000000ff,
0x0000ff00,
0x00ff0000,
0xff000000
0x00000000
#endif
);
if( !tmp->surface )

View File

@ -1,9 +1,9 @@
#define BX_HEADERBAR_FG_RED 0x95
#define BX_HEADERBAR_FG_GREEN 0x8E
#define BX_HEADERBAR_FG_BLUE 0xFE
#define BX_HEADERBAR_BG_RED 0x2B
#define BX_HEADERBAR_BG_GREEN 0x29
#define BX_HEADERBAR_BG_BLUE 0x49
#define BX_HEADERBAR_FG_RED 0x10
#define BX_HEADERBAR_FG_GREEN 0x10
#define BX_HEADERBAR_FG_BLUE 0x10
#define BX_HEADERBAR_BG_RED 0xD0
#define BX_HEADERBAR_BG_GREEN 0xD0
#define BX_HEADERBAR_BG_BLUE 0xD0
unsigned char sdl_font8x16[256][16] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, // 0