summaryrefslogtreecommitdiff
path: root/src/lib
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
parent8d8d08effa3b373a00447a90f0ed301195063159 (diff)
[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')
-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 702dfc5..9ab4521 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -1850,8 +1850,11 @@ _config_flush_get(void)
1850{ 1850{
1851 Eina_Bool is_mirrored; 1851 Eina_Bool is_mirrored;
1852 Eina_Bool translate; 1852 Eina_Bool translate;
1853 double pre_scale;
1854
1853 is_mirrored = _elm_config->is_mirrored; 1855 is_mirrored = _elm_config->is_mirrored;
1854 translate = _elm_config->translate; 1856 translate = _elm_config->translate;
1857 pre_scale = _elm_config->scale;
1855 1858
1856 _elm_config_font_overlays_cancel(); 1859 _elm_config_font_overlays_cancel();
1857 _color_overlays_cancel(); 1860 _color_overlays_cancel();
@@ -1869,7 +1872,8 @@ _config_flush_get(void)
1869 evas_font_reinit(); 1872 evas_font_reinit();
1870 _elm_config_font_overlay_apply(); 1873 _elm_config_font_overlay_apply();
1871 _elm_config_color_overlay_apply(); 1874 _elm_config_color_overlay_apply();
1872 _elm_rescale(); 1875 if (pre_scale != _elm_config->scale)
1876 _elm_rescale();
1873 _elm_recache(); 1877 _elm_recache();
1874 _elm_clouseau_reload(); 1878 _elm_clouseau_reload();
1875 _elm_config_key_binding_hash(); 1879 _elm_config_key_binding_hash();