remove legacy

This commit is contained in:
p.kosyh@gmail.com 2011-04-29 19:31:35 +00:00
parent 63ce58f510
commit d3ecce69aa
2 changed files with 0 additions and 23 deletions

View file

@ -1213,18 +1213,7 @@ void game_menu_box_width(int show, const char *txt, int width)
menu = gfx_new(w + (b + pad)*2, h + (b + pad)*2);
gfx_img_fill(menu, 0, 0, w + (b + pad)*2, h + (b + pad)*2, game_theme.border_col);
gfx_img_fill(menu, b, b, w + pad*2, h + pad*2, game_theme.menu_bg);
#if 0 //SDL_VERSION_ATLEAST(1,3,0)
do { /* hack while SDL 1.3.0 is not released */
img_t img2;
img2 = gfx_alpha_img(menu, game_theme.menu_alpha);
if (img2) {
gfx_free_image(menu);
menu = img2;
}
} while(0);
#else
gfx_set_alpha(menu, game_theme.menu_alpha);
#endif
x = (game_theme.w - w)/2;
y = (game_theme.h - h)/2;
mx = x - b - pad;

View file

@ -4027,21 +4027,9 @@ static void update_gfx(void *aux)
if (fade_step_nr == -1 || !img || !fade_bg)
return;
game_cursor(CURSOR_CLEAR);
#if 0 //SDL_VERSION_ATLEAST(1,3,0)
do { /* hack while SDL 1.3.0 is not released */
img_t img2;
img2 = gfx_alpha_img(img, (255 * (fade_step_nr + 1)) / ALPHA_STEPS);
if (img2) {
gfx_draw(fade_bg, 0, 0);
gfx_draw(img2, 0, 0);
gfx_free_image(img2);
}
} while(0);
#else
gfx_set_alpha(img, (255 * (fade_step_nr + 1)) / ALPHA_STEPS);
gfx_draw(fade_bg, 0, 0);
gfx_draw(img, 0, 0);
#endif
game_cursor(CURSOR_DRAW);
gfx_flip();
fade_step_nr ++;