From 25cc485218c87992133cd1591ec5fb5ecf9a0f96 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Wed, 9 Sep 2020 10:53:42 +0100 Subject: [PATCH] ui_cpu: hope this is ok --- src/bin/ui/ui_cpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/ui/ui_cpu.c b/src/bin/ui/ui_cpu.c index eb525f0..5f9de9a 100644 --- a/src/bin/ui/ui_cpu.c +++ b/src/bin/ui/ui_cpu.c @@ -222,11 +222,13 @@ _animate(void *data) h -= rem; evas_object_image_size_set(obj, w, h); + evas_object_resize(bg, w, h); + evas_object_image_data_update_add(obj, 0, 0, w, h); + + evas_object_geometry_get(obj, NULL, NULL, NULL, &h); evas_object_move(line, x + w - ad->pos, y); evas_object_resize(line, 1, h); evas_object_show(line); - evas_object_resize(bg, w, h); - evas_object_image_data_update_add(obj, 0, 0, w, h); if (ad->redraw) {