From c69ed0691ab8dcd32354861fadaff0d1ac14f5ed Mon Sep 17 00:00:00 2001 From: stpohle Date: Mon, 16 Jun 2003 21:03:16 +0000 Subject: [PATCH] Menuselection is not enymore a egg --- src/gfx.c | 4 ++-- src/menu.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gfx.c b/src/gfx.c index 1ab86f9..22007ea 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -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 @@ -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); diff --git a/src/menu.c b/src/menu.c index 3b63678..8ea76bf 100644 --- a/src/menu.c +++ b/src/menu.c @@ -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 @@ -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);