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)
|
int counter_fn(int interval, void *p)
|
||||||
{
|
{
|
||||||
timer_counter ++;
|
timer_counter ++;
|
||||||
if (gfx_is_drawn_gifs())
|
if (gfx_is_drawn_gifs() && !DIRECT_MODE)
|
||||||
push_user_event(anigif_do, NULL);
|
push_user_event(anigif_do, NULL);
|
||||||
return interval;
|
return interval;
|
||||||
}
|
}
|
||||||
|
|
|
@ -939,7 +939,10 @@ void gfx_draw(img_t p, int x, int y)
|
||||||
dest.y = y;
|
dest.y = y;
|
||||||
dest.w = pixbuf->w;
|
dest.w = pixbuf->w;
|
||||||
dest.h = pixbuf->h;
|
dest.h = pixbuf->h;
|
||||||
|
if (!DIRECT_MODE) /* no gifs in direct mode */
|
||||||
ag = is_anigif(pixbuf);
|
ag = is_anigif(pixbuf);
|
||||||
|
else
|
||||||
|
ag = NULL;
|
||||||
if (ag) {
|
if (ag) {
|
||||||
anigif_spawn(ag, x, y, dest.w, dest.h);
|
anigif_spawn(ag, x, y, dest.w, dest.h);
|
||||||
if (!ag->drawn)
|
if (!ag->drawn)
|
||||||
|
|
Reference in a new issue