no anigifs in direct mode
This commit is contained in:
parent
1afd56af30
commit
ee01eee844
|
@ -750,7 +750,7 @@ static void anigif_do(void *data)
|
|||
int counter_fn(int interval, void *p)
|
||||
{
|
||||
timer_counter ++;
|
||||
if (gfx_is_drawn_gifs())
|
||||
if (gfx_is_drawn_gifs() && !DIRECT_MODE)
|
||||
push_user_event(anigif_do, NULL);
|
||||
return interval;
|
||||
}
|
||||
|
|
|
@ -939,7 +939,10 @@ void gfx_draw(img_t p, int x, int y)
|
|||
dest.y = y;
|
||||
dest.w = pixbuf->w;
|
||||
dest.h = pixbuf->h;
|
||||
ag = is_anigif(pixbuf);
|
||||
if (!DIRECT_MODE) /* no gifs in direct mode */
|
||||
ag = is_anigif(pixbuf);
|
||||
else
|
||||
ag = NULL;
|
||||
if (ag) {
|
||||
anigif_spawn(ag, x, y, dest.w, dest.h);
|
||||
if (!ag->drawn)
|
||||
|
|
Reference in a new issue