projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f28fea
)
scale: fix the floating number comparison.
author
Jaehwan Kim
<jae.hwan.kim@samsung.com>
Fri, 26 Sep 2014 03:07:34 +0000
(12:07 +0900)
committer
Jaehwan Kim
<jae.hwan.kim@samsung.com>
Fri, 26 Sep 2014 03:07:34 +0000
(12:07 +0900)
There's no meaning 0.00001 in scale. So in that case, it is ignored.
legacy/elementary/src/lib/elm_main.c
patch
|
blob
|
history
diff --git
a/legacy/elementary/src/lib/elm_main.c
b/legacy/elementary/src/lib/elm_main.c
index
9fabd43
..
86ea7c7
100644
(file)
--- a/
legacy/elementary/src/lib/elm_main.c
+++ b/
legacy/elementary/src/lib/elm_main.c
@@
-461,14
+461,15
@@
elm_app_locale_dir_get(void)
EAPI void
elm_app_base_scale_set(double base_scale)
{
- if (base_scale <= 0.0) return;
+ if (base_scale < 0.0) return;
+ if ((int)(base_scale * 10000) == 0) return;
app_base_scale = base_scale;
}
EAPI double
elm_app_base_scale_get(void)
{
- if (app_base_scale) return app_base_scale;
+ if (app_base_scale
> 0.0
) return app_base_scale;
return 1.0;
}