netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=25cc485218c87992133cd1591ec5fb5ecf9a0f96

commit 25cc485218c87992133cd1591ec5fb5ecf9a0f96
Author: Alastair Poole <nets...@gmail.com>
Date:   Wed Sep 9 10:53:42 2020 +0100

    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)
      {

-- 


Reply via email to