added force blank animation

This commit is contained in:
cylgom 2018-10-24 15:19:36 +02:00
parent 4f8c2f2428
commit 10bd01aaeb
1 changed files with 17 additions and 0 deletions

View File

@ -380,6 +380,20 @@ void position_input(struct desktop* desktop, struct input* login, struct input*
} }
// background animations // background animations
// screen-clearing routine
void blank_slow()
{
const struct tb_cell c = {' ', config.fg, config.bg};
for (i16 i = 0; i < width; ++i)
{
for (i16 k = 0; k < height; ++k)
{
tb_put_cell(i, k, &c);
}
}
}
// example implementation // example implementation
void spiral() void spiral()
{ {
@ -415,6 +429,9 @@ void animate()
switch(config.animate) switch(config.animate)
{ {
case 1: case 1:
blank_slow();
break;
case 2:
spiral(); spiral();
break; break;
case 0: case 0: