summaryrefslogtreecommitdiff
path: root/draw/draw_edge.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-01-31 17:36:16 +0000
committerRobin Watts <robin.watts@artifex.com>2013-02-06 19:24:13 +0000
commite0b9e65a09ebaa0d94b80b1504a2d285186125e3 (patch)
tree3271a2eba52a6419e7153412302c83f45feb885b /draw/draw_edge.c
parentd3aa37962470253083714b5092a1ba759f674d47 (diff)
downloadmupdf-e0b9e65a09ebaa0d94b80b1504a2d285186125e3.tar.xz
Add some 'restrict' qualifiers to hopefully speed matrix ops.
Also, move fz_is_infinite_rect and fz_is_empty_rect to be a static inline rather than a macro. (Static inlines are preferred over macros by at least one customers). We appear to be calling them with bboxes too, so add fz_is_infinite_bbox and fz_is_empty_bbox to solve this.
Diffstat (limited to 'draw/draw_edge.c')
-rw-r--r--draw/draw_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/draw_edge.c b/draw/draw_edge.c
index dca6a648..4f9994d1 100644
--- a/draw/draw_edge.c
+++ b/draw/draw_edge.c
@@ -207,7 +207,7 @@ fz_reset_gel(fz_gel *gel, const fz_bbox *clip)
{
fz_aa_context *ctxaa = gel->ctx->aa;
- if (fz_is_infinite_rect(clip))
+ if (fz_is_infinite_bbox(clip))
{
gel->clip.x0 = gel->clip.y0 = BBOX_MAX;
gel->clip.x1 = gel->clip.y1 = BBOX_MIN;