From 3517286a9404d556c384276d63b73b588fadbcfe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Jan 2014 22:24:11 +0000 Subject: Draw and layout performance improvements. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5248 a436a847-0d15-0410-975c-d299462d15a1 --- src/text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/text.c') diff --git a/src/text.c b/src/text.c index 528a842..3d14c64 100644 --- a/src/text.c +++ b/src/text.c @@ -217,10 +217,10 @@ ganv_text_bounds_item(GanvItem* item, ganv_text_layout(text); } - *x1 = MIN(impl->coords.x, impl->coords.x + impl->coords.width); - *y1 = MIN(impl->coords.y, impl->coords.y + impl->coords.height); - *x2 = MAX(impl->coords.x, impl->coords.x + impl->coords.width); - *y2 = MAX(impl->coords.y, impl->coords.y + impl->coords.height); + *x1 = impl->coords.x; + *y1 = impl->coords.y; + *x2 = impl->coords.x + impl->coords.width; + *y2 = impl->coords.y + impl->coords.height; } static void -- cgit v1.2.1