Patcna: fix wrong widgth and height in eina_rectangle computation logic.

Reviewers: cedric, raster, seoz, Hermet, bluezery

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D500

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
Cedric BAIL 2014-02-03 15:35:36 +09:00
parent ef2127c900
commit 90cd40753d
2 changed files with 3 additions and 2 deletions

View File

@ -49,6 +49,7 @@ Patryk Kaczmarek <patryk.k@samsung.com>
Igor Murzov <e-mail@date.by>
Vladislav Brovko <v.brovko@samsung.com>
ChunEon Park (Hermet) <hermet@hermet.pe.kr>
Rajeev Ranjan (Rajeev) <rajeev.r@samsung.com> <rajeev.jnnce@gmail.com>
Eet
---

View File

@ -173,7 +173,7 @@ eina_rectangle_union(Eina_Rectangle *dst, const Eina_Rectangle *src)
}
/* right */
if ((dst->x + dst->w) < (src->x + src->w))
dst->w = src->x + src->w;
dst->w = src->x + src->w - dst->x;
/* top */
if (dst->y > src->y)
{
@ -182,7 +182,7 @@ eina_rectangle_union(Eina_Rectangle *dst, const Eina_Rectangle *src)
}
/* bottom */
if ((dst->y + dst->h) < (src->y + src->h))
dst->h = src->y + src->h;
dst->h = src->y + src->h - dst->y;
}
/**