}
*minw = mnw;
- if (ep->part->scale) *minw = TO_INT_ROUND(SCALE(sc, *minw));
+ if (ep->part->scale) *minw = TO_INT(SCALE(sc, *minw));
if ((ep->type == EDJE_RP_TYPE_SWALLOW) &&
(ep->typedata.swallow))
{
*maxw = mxw;
if (*maxw > 0)
{
- if (ep->part->scale) *maxw = TO_INT_ROUND(SCALE(sc, *maxw));
+ if (ep->part->scale) *maxw = TO_INT(SCALE(sc, *maxw));
if (*maxw < 1) *maxw = 1;
}
}
*maxw = mxw;
if (*maxw > 0)
{
- if (ep->part->scale) *maxw = TO_INT_ROUND(SCALE(sc, *maxw));
+ if (ep->part->scale) *maxw = TO_INT(SCALE(sc, *maxw));
if (*maxw < 1) *maxw = 1;
}
if (ep->typedata.swallow->swallow_params.max.w < *maxw)
*maxw = mxw;
if (*maxw > 0)
{
- if (ep->part->scale) *maxw = TO_INT_ROUND(SCALE(sc, *maxw));
+ if (ep->part->scale) *maxw = TO_INT(SCALE(sc, *maxw));
if (*maxw < 1) *maxw = 1;
}
}
}
*minh = mnh;
- if (ep->part->scale) *minh = TO_INT_ROUND(SCALE(sc, *minh));
+ if (ep->part->scale) *minh = TO_INT(SCALE(sc, *minh));
if ((ep->type == EDJE_RP_TYPE_SWALLOW) &&
(ep->typedata.swallow))
{
*maxh = mxh;
if (*maxh > 0)
{
- if (ep->part->scale) *maxh = TO_INT_ROUND(SCALE(sc, *maxh));
+ if (ep->part->scale) *maxh = TO_INT(SCALE(sc, *maxh));
if (*maxh < 1) *maxh = 1;
}
}
*maxh = mxh;
if (*maxh > 0)
{
- if (ep->part->scale) *maxh = TO_INT_ROUND(SCALE(sc, *maxh));
+ if (ep->part->scale) *maxh = TO_INT(SCALE(sc, *maxh));
if (*maxh < 1) *maxh = 1;
}
if (ep->typedata.swallow->swallow_params.max.h < *maxh)
*maxh = mxh;
if (*maxh > 0)
{
- if (ep->part->scale) *maxh = TO_INT_ROUND(SCALE(sc, *maxh));
+ if (ep->part->scale) *maxh = TO_INT(SCALE(sc, *maxh));
if (*maxh < 1) *maxh = 1;
}
}
#define FROM_DOUBLE(a) eina_f32p32_double_from(a)
#define FROM_INT(a) eina_f32p32_int_from(a)
#define TO_INT(a) eina_f32p32_int_to(a)
-#define TO_INT_ROUND(a) eina_f32p32_int_to(ADD(a, FROM_DOUBLE(0.5)))
#define ZERO 0
#define COS(a) eina_f32p32_cos(a)
#define SIN(a) eina_f32p32_sin(a)
#define FROM_DOUBLE(a) (a)
#define FROM_INT(a) (double)(a)
#define TO_INT(a) (int)(a)
-#define TO_INT_ROUND(a) (int)(a + 0.5)
#define ZERO 0.0
#define COS(a) cos(a)
#define SIN(a) sin(a)