summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim@samsung.com>2014-09-26 12:07:34 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2014-09-26 12:07:34 +0900
commitdc1382b9d0c32cc64d6de6266244889578eb13bd (patch)
treea1d103b3af5d0ad660f522d1a33f2bc4cf1fc37c /src/lib
parent06292fe7df78ee245d69948f591290247f75865c (diff)
scale: fix the floating number comparison.
There's no meaning 0.00001 in scale. So in that case, it is ignored.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c
index 9fabd4357..86ea7c7c8 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -461,14 +461,15 @@ elm_app_locale_dir_get(void)
461EAPI void 461EAPI void
462elm_app_base_scale_set(double base_scale) 462elm_app_base_scale_set(double base_scale)
463{ 463{
464 if (base_scale <= 0.0) return; 464 if (base_scale < 0.0) return;
465 if ((int)(base_scale * 10000) == 0) return;
465 app_base_scale = base_scale; 466 app_base_scale = base_scale;
466} 467}
467 468
468EAPI double 469EAPI double
469elm_app_base_scale_get(void) 470elm_app_base_scale_get(void)
470{ 471{
471 if (app_base_scale) return app_base_scale; 472 if (app_base_scale > 0.0) return app_base_scale;
472 return 1.0; 473 return 1.0;
473} 474}
474 475