Menuselection is not enymore a egg

origin
stpohle 23 years ago
parent 8f2c480d9b
commit c69ed0691a

@ -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);

@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.25 2003/06/07 01:24:52 stpohle Exp $ */
/* $Id: menu.c,v 1.26 2003/06/16 21:03:16 stpohle Exp $ */
/* menu's for the game */
#include <SDL.h>
@ -103,7 +103,7 @@ draw_select (int select, _menu menu[], int x, int y)
src.x = 0;
src.y = 0;
src.w = font[0].size.x;
src.w = font[0].size.y;
src.h = font[0].size.y;
SDL_BlitSurface (gfx.menuselect.image, &src, gfx.screen, &dest);

Loading…
Cancel
Save