summaryrefslogtreecommitdiff
path: root/src/glitz_rect.c
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2004-09-11 00:16:23 +0000
committerDavid Reveman <davidr@novell.com>2004-09-11 00:16:23 +0000
commitd3ab77ad365c0b0100565facdbaa7a8e34f4b119 (patch)
treeff309f02be177f4106f49f4f56b68621842276af /src/glitz_rect.c
parent630708c28ae80cae10282023c87aadbc4a5ef50f (diff)
A few bug fixes
Diffstat (limited to 'src/glitz_rect.c')
-rw-r--r--src/glitz_rect.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/glitz_rect.c b/src/glitz_rect.c
index f08e09b..46ed484 100644
--- a/src/glitz_rect.c
+++ b/src/glitz_rect.c
@@ -48,11 +48,11 @@ glitz_rectangle_bounds (const glitz_rectangle_t *rects,
for (; n_rects; n_rects--, rects++) {
if (rects->x < box->x1)
box->x1 = rects->x;
- else if ((rects->x + rects->width) > box->x2)
+ if ((rects->x + rects->width) > box->x2)
box->x2 = rects->x + rects->width;
if (rects->y < box->y1)
box->y1 = rects->y;
- else if ((rects->y + rects->height) > box->y2)
+ if ((rects->y + rects->height) > box->y2)
box->y2 = rects->y + rects->height;
}
}
@@ -81,7 +81,7 @@ glitz_set_rectangles (glitz_surface_t *dst,
dst->flags |= GLITZ_SURFACE_FLAG_DRAWABLE_DIRTY_MASK;
return;
}
-
+
if (glitz_surface_push_current (dst, GLITZ_CN_SURFACE_DRAWABLE_CURRENT)) {
gl->clear_color (color->red / (glitz_gl_clampf_t) 0xffff,
color->green / (glitz_gl_clampf_t) 0xffff,
@@ -144,6 +144,7 @@ glitz_set_rectangles (glitz_surface_t *dst,
glitz_surface_pop_current (dst);
}
+slim_hidden_def(glitz_set_rectangles);
void
glitz_set_rectangle (glitz_surface_t *dst,