anigif fix
This commit is contained in:
parent
4d7c04ee3b
commit
1727a08115
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue