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 b62e654e101d27a748cc92db679cd5250e97c518
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Tue Aug 22 09:49:43 2023 +0100
handle scale for custom pos/size
---
TODO.md | 3 ---
src/efm/efm.c | 1 +
src/efm/efm_back_end.c | 4 ++++
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/TODO.md b/TODO.md
index b5efc0c..8a6eee9 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,14 +3,11 @@
## Now
* View
- * Free x/y position
* Vertical icon view
* Free x/y cleanup/grid align
* Icon with no labels
* Icons with flush view (like rage video browser view)
* .dir.desktop support for changing view type and looks etc. etc.
- * Free x/y scale handling
- * Free w/h size per icon + scale
* Custom style per icon
* DND auto-open dir on hover-over
* File properties dialog
diff --git a/src/efm/efm.c b/src/efm/efm.c
index d6954d2..8edf966 100644
--- a/src/efm/efm.c
+++ b/src/efm/efm.c
@@ -32,6 +32,7 @@ static Evas_Smart_Class _sc_parent = EVAS_SMART_CLASS_INIT_NULL;
static void _listing_do(Smart_Data *sd);
static void _listing_done(Smart_Data *sd);
+static double _scale_get(Smart_Data *sd);
#include "efm_private.h"
#include "efm_back_end.c"
diff --git a/src/efm/efm_back_end.c b/src/efm/efm_back_end.c
index a43b359..107bf79 100644
--- a/src/efm/efm_back_end.c
+++ b/src/efm/efm_back_end.c
@@ -444,6 +444,8 @@ _cb_thread_notify(void *data, Ecore_Thread *th EINA_UNUSED, void *msg)
if (sscanf(s, "%i,%i", &x, &y) == 2)
{
+ x *= _scale_get(sd);
+ y *= _scale_get(sd);
icon->geom.x = x;
icon->geom.y = y;
}
@@ -455,6 +457,8 @@ _cb_thread_notify(void *data, Ecore_Thread *th EINA_UNUSED, void *msg)
if (sscanf(s, "%ix%i", &w, &h) == 2)
{
+ w *= _scale_get(sd);
+ h *= _scale_get(sd);
icon->geom.w = w;
icon->geom.h = h;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.