clouds: my attempt.

This commit is contained in:
Alastair Poole 2020-09-09 13:57:24 +01:00
parent 25cc485218
commit cf4a8f7e8a
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -521,11 +521,11 @@ _anim_clouds(void *data)
cpu = (ui->cpu_usage / 10) > 0 ? ui->cpu_usage / 10 : 1;
evas_object_resize(anim->im, iw, wh);
evas_object_image_fill_set(anim->im, anim->pos, 0, iw, wh);
evas_object_image_fill_set(anim->im, anim->pos, 0, iw, ih);
anim->pos += cpu;
evas_object_resize(anim->bg, iw, wh);
evas_object_image_fill_set(anim->bg, anim->bg_pos, 0, iw, wh);
evas_object_image_fill_set(anim->bg, anim->bg_pos, 0, iw, ih);
anim->bg_pos++;
t = time(NULL);