This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 19c725728552de273f12b422a2d5f76d3b76780c
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Tue Aug 22 08:35:54 2023 +0100

    add dump debug funcs + fix layout in custom mode in some timing setups
---
 src/efm/bitmap.c     | 37 +++++++++++++++++++++++++++++++++++++
 src/efm/efm_custom.c | 15 +++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/src/efm/bitmap.c b/src/efm/bitmap.c
index ee81ebb..a400616 100644
--- a/src/efm/bitmap.c
+++ b/src/efm/bitmap.c
@@ -208,3 +208,40 @@ done:
    *w = inw;
    *h = inh;
 }
+
+/*
+static void
+_bitmap_row_dump(unsigned int *row, int w)
+{
+   unsigned int *p = row;
+   int xx, bit = 0;
+
+   printf("[");
+   for (xx = 0; xx < w; xx++)
+     {
+        if (*p & (1 << bit)) printf("#");
+        else printf(".");
+        bit++;
+        if (bit >= 32)
+          {
+             p++;
+             bit = 0;
+          }
+     }
+   printf("]\n");
+}
+
+static void
+_bitmap_dump(unsigned int *bitmap, int szw, int szh)
+{
+   unsigned int *p;
+   int yy;
+
+   p = bitmap;
+   for (yy = 0; yy < szh; yy++)
+     {
+        _bitmap_row_dump(p, szw);
+        p += szw / 32;
+     }
+}
+ */
diff --git a/src/efm/efm_custom.c b/src/efm/efm_custom.c
index 291f200..54d991b 100644
--- a/src/efm/efm_custom.c
+++ b/src/efm/efm_custom.c
@@ -155,16 +155,31 @@ _icon_custom_data_all_icons_fill(Smart_Data *sd)
    Block *block;
    Icon *icon;
 
+   if (sd->reblock_job)
+     {
+        ecore_job_del(sd->reblock_job);
+        _cb_reblock(sd);
+     }
    EINA_LIST_FOREACH(sd->blocks, bl, block)
      {
         EINA_LIST_FOREACH(block->icons, il, icon)
           {
              if (icon->geom.x == -9999) continue;
+             if (icon->geom.w == -9999)
+               {
+                  icon->geom.w = sd->icon_min_w;
+                  icon->geom.h = sd->icon_min_h;
+               }
              _icon_custom_data_bitmap_fill(sd,
                                            icon->geom.x, icon->geom.y,
                                            icon->geom.w, icon->geom.h);
           }
      }
+/*
+   Custom_Data *cd = sd->custom_data;
+   if ((cd) && (cd->bitmap) && (cd->alloc_w > 0))
+     _bitmap_dump(cd->bitmap, cd->alloc_w, cd->alloc_h);
+ */
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to