From 7db8b35772b83e5a6e846133cf7d0699a51d5028 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 30 Sep 2006 18:20:39 +0000 Subject: [PATCH] * As per user request, only display the "Powered by libcaca" banner for a few seconds at the beginning. --- src/aafire.c | 6 ++++-- src/cacademo.c | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/aafire.c b/src/aafire.c index 69e6997..beff903 100644 --- a/src/aafire.c +++ b/src/aafire.c @@ -241,8 +241,10 @@ paused: cucul_dither_bitmap(cv, 0, 0, cucul_get_canvas_width(cv), cucul_get_canvas_height(cv), cucul_dither, bitmap); cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); - cucul_putstr(cv, cucul_get_canvas_width(cv) - 30, - cucul_get_canvas_height(cv) - 2, " -=[ Powered by libcaca ]=- "); + if (sloop < 100) + cucul_putstr(cv, cucul_get_canvas_width(cv) - 30, + cucul_get_canvas_height(cv) - 2, + " -=[ Powered by libcaca ]=- "); caca_refresh_display(dp); /*XSIZ = caca_get_width() * 2; diff --git a/src/cacademo.c b/src/cacademo.c index 537592c..2b22f34 100644 --- a/src/cacademo.c +++ b/src/cacademo.c @@ -170,9 +170,10 @@ paused: } cucul_set_color(frontcv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); - cucul_putstr(frontcv, cucul_get_canvas_width(frontcv) - 30, - cucul_get_canvas_height(frontcv) - 2, - " -=[ Powered by libcaca ]=- "); + if(frame < 100) + cucul_putstr(frontcv, cucul_get_canvas_width(frontcv) - 30, + cucul_get_canvas_height(frontcv) - 2, + " -=[ Powered by libcaca ]=- "); caca_refresh_display(dp); } end: