scale: add a bracket in the ELM_SCALE_SIZE macro.
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 22 Sep 2014 04:50:58 +0000 (13:50 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 22 Sep 2014 04:50:58 +0000 (13:50 +0900)
src/lib/elm_macros.h

index 05403aef076887e4c6f44d3835143decfc355746..39e34af6f3bd5f5c5af7e6ba390c14c60f0ca01e 100644 (file)
@@ -1,7 +1,7 @@
 /* handy macros */
 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
 #define ELM_PI 3.14159265358979323846
-#define ELM_SCALE_SIZE(x) x / elm_app_base_scale_get() * elm_config_scale_get()
+#define ELM_SCALE_SIZE(x) ((x) / (elm_app_base_scale_get() * elm_config_scale_get()))
 
 // checks if the point(xx, yy) stays out of the rectangle(x, y, w, h) area.
 #define ELM_RECTS_POINT_OUT(x, y, w, h, xx, yy) (((xx) < (x)) || ((yy) < (y)) || ((xx) > ((x) + (w))) || ((yy) > ((y) + (h))))