This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 0558ebe25eb489004df760264f522d2958b31d42
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Mon Jul 22 10:45:20 2024 +0100
randr config dialog - dont use x flags if no x supported
fixes #78 partly
---
src/modules/conf_randr/e_int_config_randr2.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/modules/conf_randr/e_int_config_randr2.c b/src/modules/conf_randr/e_int_config_randr2.c
index b73a721ed..5b2fa3a91 100644
--- a/src/modules/conf_randr/e_int_config_randr2.c
+++ b/src/modules/conf_randr/e_int_config_randr2.c
@@ -412,15 +412,18 @@ _basic_screen_info_fill(E_Config_Dialog_Data *cfdata, E_Config_Randr2_Screen *cs
{
mode_cbdata->cfdata = cfdata;
mode_cbdata->mode = *m;
- if (m->flags & ECORE_X_RANDR_MODE_DOUBLE_SCAN)
+#ifdef E_COMP_X
+ if ((e_comp->comp_type == E_PIXMAP_TYPE_X) &&
+ (m->flags & ECORE_X_RANDR_MODE_DOUBLE_SCAN))
snprintf(buf, sizeof(buf), "%ix%i @ %1.2fHz (Doublescan)", m->w, m->h, m->refresh / 2);
- else if (m->flags & ECORE_X_RANDR_MODE_INTERLACE)
+ else if ((e_comp->comp_type == E_PIXMAP_TYPE_X) &&
+ (m->flags & ECORE_X_RANDR_MODE_INTERLACE))
snprintf(buf, sizeof(buf), "%ix%i @ %1.2fHz (Interlaced)", m->w, m->h, m->refresh);
else
+#endif
snprintf(buf, sizeof(buf), "%ix%i @ %1.2fHz", m->w, m->h, m->refresh);
it = elm_list_item_append(cfdata->modes_obj, buf, NULL, NULL, _cb_mode_set, mode_cbdata);
cfdata->freelist = eina_list_append(cfdata->freelist, mode_cbdata);
- /* printf("mode add %p %p %p\n", mode_cbdata, cfdata->modes_obj, it); */
if ((cs->mode_w == m->w) && (cs->mode_h == m->h) &&
(fabs(cs->mode_refresh - m->refresh) < 0.01 ))
it_sel = it;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.