forked from enlightenment/efl
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:
parent
ef2127c900
commit
90cd40753d
1
AUTHORS
1
AUTHORS
|
@ -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
|
||||
---
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue