diff options
Diffstat (limited to 'src/scene00.c')
-rw-r--r-- | src/scene00.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scene00.c b/src/scene00.c index f418146..976cb9f 100644 --- a/src/scene00.c +++ b/src/scene00.c @@ -52,7 +52,7 @@ void scene00_free_caca(graphical_env_t *ge, scene00_env_t *se) { } int scene00_next_gl(graphical_env_t *ge, scene00_env_t *se) { - static int firsttime=1; TRACE_ONCE("call"); + TRACE_CALL_ONCE; return 0; } @@ -60,7 +60,7 @@ int scene00_next_sdl(graphical_env_t *ge, scene00_env_t *se) { // Shorthands SDL_Renderer *r = ge->sdl_rndr; - static int firsttime=1; TRACE_ONCE("call"); + TRACE_CALL_ONCE; // https://gist.github.com/Twinklebear/8265888 // https://forums.libsdl.org/viewtopic.php?p=51634 @@ -90,7 +90,7 @@ int scene00_next_caca(graphical_env_t *ge, scene00_env_t *se) { int w = ge->w, h = ge->h; Uint32 frame = ge->sc_framecount; - static int firsttime=1; TRACE_ONCE("call"); + TRACE_CALL_ONCE; // "convert" the raw pixel stream from SDL to ASCII art on caca canevas caca_dither_bitmap(cv, 0, 0, w, h, ge->d, ge->raw_target); |