635 |
{ |
{ |
636 |
SDL_Surface *ss = SDL_CreateRGBSurface(SDL_SWSURFACE, |
SDL_Surface *ss = SDL_CreateRGBSurface(SDL_SWSURFACE, |
637 |
TileWidth, TileHeight, |
TileWidth, TileHeight, |
638 |
16,0,0,0,0); |
video::GetColorDepth(), |
639 |
|
0,0,0,0); |
640 |
SDL_SetColorKey(ss, SDL_SRCCOLORKEY, |
SDL_SetColorKey(ss, SDL_SRCCOLORKEY, |
641 |
SDL_MapRGB(ss->format, 255,255,255)); |
SDL_MapRGB(ss->format, 255,255,255)); |
642 |
SDL_SetAlpha(ss, SDL_SRCALPHA, 128); |
SDL_SetAlpha(ss, SDL_SRCALPHA, 128); |
667 |
if (m_surface_avail.empty()) { |
if (m_surface_avail.empty()) { |
668 |
SDL_Surface *ss = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_RLEACCEL, |
SDL_Surface *ss = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_RLEACCEL, |
669 |
TileWidth, TileHeight, |
TileWidth, TileHeight, |
670 |
16,0,0,0,0); |
video::GetColorDepth(), |
671 |
// #if 0 |
0,0,0,0); |
|
// SDL_SetColorKey(ss, SDL_SRCCOLORKEY | SDL_RLEACCEL, |
|
|
// SDL_MapRGB(ss->format, 255,255,255)); |
|
|
// SDL_SetAlpha(ss, SDL_SRCALPHA | SDL_RLEACCEL, 128); |
|
|
// #else |
|
|
// SDL_SetColorKey(ss, SDL_SRCCOLORKEY, |
|
|
// SDL_MapRGB(ss->format, 255,255,255)); |
|
|
// SDL_SetAlpha(ss, SDL_SRCALPHA, 128); |
|
|
// #endif |
|
672 |
s = new Surface(SDL_DisplayFormat(ss)); |
s = new Surface(SDL_DisplayFormat(ss)); |
673 |
SDL_FreeSurface(ss); |
SDL_FreeSurface(ss); |
674 |
} else { |
} else { |