no anigifs in direct mode

This commit is contained in:
p.kosyh@gmail.com 2011-04-23 10:22:50 +00:00
parent 1afd56af30
commit ee01eee844
2 changed files with 5 additions and 2 deletions

View file

@ -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;
}

View file

@ -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)