From 346969eb90dc1df97fc1a43302b85feafd3b89a1 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 9 Feb 2020 13:59:12 +0000 Subject: [PATCH] todo - add magnifier --- TODO | 6 ++++++ src/bin/e_backlight.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 25cc4990e..86ea7fe15 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,10 @@ TODO: +* magnifier - need a magnifier tool + * live follow the mouse and zoom around it in some corner /region of + the screen + * toggle on/off or bring up only while key or button pressed + * freeze the zooms like a screenshot/xmag like thing + * offer coordinates and measuring by pixel * pam/auth - exotic auth things like fingerprint readers etc. need to work * fingerprint * smart card diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c index f08922621..10259be03 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -47,6 +47,8 @@ _backlight_mismatch_retry(Backlight_Device *bd) // and we retried < 20 times (bd->retries < 20)) { // try again + printf("RETRY backlight set as %1.2f != %1.2f (expected) try=%i\n", + bd->val, bd->expected_val, bd->retries); bd->retries++; if (bd->retry_timer) ecore_timer_del(bd->retry_timer); bd->retry_timer = ecore_timer_add(0.1, _backlight_retry_timer_cb, bd); @@ -90,7 +92,7 @@ _backlight_system_ddc_get_cb(void *data, const char *params) e_system_handler_del("ddc-val-get", _backlight_system_ddc_get_cb, bd); if (val < 0) return; // get failed.... don't update fval = (double)val / 100.0; - if (fabs(fval - bd->val) >= DBL_EPSILON) + if ((fabs(fval - bd->val) >= DBL_EPSILON) || (val == -1)) { bd->val = fval; ecore_event_add(E_EVENT_BACKLIGHT_CHANGE, NULL, NULL, NULL);