anigif fix

This commit is contained in:
p.kosyh 2010-03-11 17:28:57 +00:00
parent 4d7c04ee3b
commit 1727a08115
2 changed files with 4 additions and 2 deletions

View file

@ -1406,8 +1406,10 @@ int game_cmd(char *cmd)
if (game_theme.gfx_mode != GFX_MODE_EMBEDDED) {
el_draw(el_ways);
if ((new_pict || new_place))
if ((new_pict || new_place)) {
gfx_dispose_gif(el_img(el_spic));
el_draw(el_spic);
}
}
// gfx_start_gif(el_img(el_spic));

View file

@ -763,7 +763,7 @@ void gfx_draw(img_t p, int x, int y)
dest.h = pixbuf->h;
ag = is_anigif(pixbuf);
if (ag) {
anigif_spawn(ag, x, y, dest.w, dest.w);
anigif_spawn(ag, x, y, dest.w, dest.h);
if (!ag->drawn)
anigif_drawn_nr ++;
ag->drawn = 1;