summaryrefslogtreecommitdiff
path: root/draw/draw_edge.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-02-06 15:14:20 +0100
committerRobin Watts <robin.watts@artifex.com>2013-02-06 19:24:15 +0000
commit0bd405c16618e1b0cdaba67fe61509cd113ba653 (patch)
tree4434bd3d873418feaa5d96d7a6f4539ec3b57fb4 /draw/draw_edge.c
parentb951f35ea59e27a21a63b84ec1506974ceab27a0 (diff)
downloadmupdf-0bd405c16618e1b0cdaba67fe61509cd113ba653.tar.xz
Rename bbox to irect.
Diffstat (limited to 'draw/draw_edge.c')
-rw-r--r--draw/draw_edge.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/draw/draw_edge.c b/draw/draw_edge.c
index 4f9994d1..138fbcd9 100644
--- a/draw/draw_edge.c
+++ b/draw/draw_edge.c
@@ -203,11 +203,11 @@ fz_new_gel(fz_context *ctx)
}
void
-fz_reset_gel(fz_gel *gel, const fz_bbox *clip)
+fz_reset_gel(fz_gel *gel, const fz_irect *clip)
{
fz_aa_context *ctxaa = gel->ctx->aa;
- if (fz_is_infinite_bbox(clip))
+ if (fz_is_infinite_irect(clip))
{
gel->clip.x0 = gel->clip.y0 = BBOX_MAX;
gel->clip.x1 = gel->clip.y1 = BBOX_MIN;
@@ -235,13 +235,13 @@ fz_free_gel(fz_gel *gel)
fz_free(gel->ctx, gel);
}
-fz_bbox *
-fz_bound_gel(const fz_gel *gel, fz_bbox *bbox)
+fz_irect *
+fz_bound_gel(const fz_gel *gel, fz_irect *bbox)
{
fz_aa_context *ctxaa = gel->ctx->aa;
if (gel->len == 0)
{
- *bbox = fz_empty_bbox;
+ *bbox = fz_empty_irect;
}
else
{
@@ -670,7 +670,7 @@ static inline void blit_aa(fz_pixmap *dst, int x, int y,
}
static void
-fz_scan_convert_aa(fz_gel *gel, int eofill, const fz_bbox *clip,
+fz_scan_convert_aa(fz_gel *gel, int eofill, const fz_irect *clip,
fz_pixmap *dst, unsigned char *color)
{
unsigned char *alphas;
@@ -855,7 +855,7 @@ clip_ended:
*/
static inline void blit_sharp(int x0, int x1, int y,
- const fz_bbox *clip, fz_pixmap *dst, unsigned char *color)
+ const fz_irect *clip, fz_pixmap *dst, unsigned char *color)
{
unsigned char *dp;
x0 = fz_clampi(x0, dst->x, dst->x + dst->w);
@@ -871,7 +871,7 @@ static inline void blit_sharp(int x0, int x1, int y,
}
static inline void non_zero_winding_sharp(fz_gel *gel, int y,
- const fz_bbox *clip, fz_pixmap *dst, unsigned char *color)
+ const fz_irect *clip, fz_pixmap *dst, unsigned char *color)
{
int winding = 0;
int x = 0;
@@ -887,7 +887,7 @@ static inline void non_zero_winding_sharp(fz_gel *gel, int y,
}
static inline void even_odd_sharp(fz_gel *gel, int y,
- const fz_bbox *clip, fz_pixmap *dst, unsigned char *color)
+ const fz_irect *clip, fz_pixmap *dst, unsigned char *color)
{
int even = 0;
int x = 0;
@@ -903,7 +903,7 @@ static inline void even_odd_sharp(fz_gel *gel, int y,
}
static void
-fz_scan_convert_sharp(fz_gel *gel, int eofill, const fz_bbox *clip,
+fz_scan_convert_sharp(fz_gel *gel, int eofill, const fz_irect *clip,
fz_pixmap *dst, unsigned char *color)
{
int e = 0;
@@ -959,7 +959,7 @@ fz_scan_convert_sharp(fz_gel *gel, int eofill, const fz_bbox *clip,
}
void
-fz_scan_convert(fz_gel *gel, int eofill, const fz_bbox *clip,
+fz_scan_convert(fz_gel *gel, int eofill, const fz_irect *clip,
fz_pixmap *dst, unsigned char *color)
{
fz_aa_context *ctxaa = gel->ctx->aa;