Fix for the Starter images having a black background in 800x600 mode.

Changed the special-case code so that it copies a surface with alpha
correctly. Removed stray SDL_SetAlpha() from the background special-case.
The Starters with bg and fg look a bit odd if you paint outside the
original 640x480 area.
This commit is contained in:
John Popplewell 2004-09-28 17:42:23 +00:00
parent 72d839e3be
commit aec0dcc442

View file

@ -12829,11 +12829,13 @@ void load_starter(char * img_id)
img_starter = SDL_CreateRGBSurface(canvas->flags,
canvas->w, canvas->h,
canvas->format->BitsPerPixel,
canvas->format->Rmask,
canvas->format->Gmask,
canvas->format->Bmask,
0);
tmp_surf->format->BitsPerPixel,
tmp_surf->format->Rmask,
tmp_surf->format->Gmask,
tmp_surf->format->Bmask,
tmp_surf->format->Amask);
SDL_SetAlpha(tmp_surf, 0, 0);
if (img_starter != NULL)
{
@ -12878,8 +12880,6 @@ void load_starter(char * img_id)
canvas->format->Bmask,
0);
SDL_SetAlpha(img_starter_bkgd, SDL_SRCALPHA, SDL_ALPHA_TRANSPARENT);
if (img_starter_bkgd != NULL)
{
dest.x = (canvas->w - tmp_surf->w) / 2;