aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorJonghee Choi <joi.choi@samsung.com>2016-07-29 11:43:38 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-29 11:44:40 +0900
commit09b01de58a58714dbf3f13664f286a5c02ea64e9 (patch)
tree87eb89bd74697d09a1e45b3ed81cd0b40089ad39 /src/lib/elementary
parentgenlist: fix memory-leak in filter queue and refactoring queue iteration (diff)
downloadefl-09b01de58a58714dbf3f13664f286a5c02ea64e9.tar.gz
[CONFIG] call elm_rescale() only when scale value is changed
Summary: it doesn't need to call elm_rescale() in _config_flush_get() when the scale value is not changed. Reviewers: jaehwan, cedric, raster Subscribers: minkyu Differential Revision: https://phab.enlightenment.org/D4186
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 702dfc5fe8..9ab452132b 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -1850,8 +1850,11 @@ _config_flush_get(void)
{
Eina_Bool is_mirrored;
Eina_Bool translate;
+ double pre_scale;
+
is_mirrored = _elm_config->is_mirrored;
translate = _elm_config->translate;
+ pre_scale = _elm_config->scale;
_elm_config_font_overlays_cancel();
_color_overlays_cancel();
@@ -1869,7 +1872,8 @@ _config_flush_get(void)
evas_font_reinit();
_elm_config_font_overlay_apply();
_elm_config_color_overlay_apply();
- _elm_rescale();
+ if (pre_scale != _elm_config->scale)
+ _elm_rescale();
_elm_recache();
_elm_clouseau_reload();
_elm_config_key_binding_hash();