|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: gfx.c,v 1.20 2003/06/07 14:25:46 stpohle Exp $ */
|
|
|
|
|
/* $Id: gfx.c,v 1.21 2003/06/16 21:03:16 stpohle Exp $ */
|
|
|
|
|
/* gfx.c */
|
|
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
@ -564,7 +564,7 @@ gfx_loaddata ()
|
|
|
|
|
exit (1);
|
|
|
|
|
}
|
|
|
|
|
gfx.menuselect.frames = tmpimage->h / GFX_IMGSIZE;
|
|
|
|
|
tmpimage1 = scale_image (tmpimage, font[0].size.x, gfx.menuselect.frames * font[0].size.y);
|
|
|
|
|
tmpimage1 = scale_image (tmpimage, font[0].size.y, gfx.menuselect.frames * font[0].size.y);
|
|
|
|
|
getRGBpixel (tmpimage1, 0, 0, &r, &g, &b);
|
|
|
|
|
SDL_SetColorKey (tmpimage1, SDL_SRCCOLORKEY, SDL_MapRGB (tmpimage1->format, r, g, b));
|
|
|
|
|
gfx.menuselect.image = SDL_DisplayFormat (tmpimage1);
|
|
|
|
|