summaryrefslogtreecommitdiff
path: root/render/pathscan.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-04-04 08:58:34 +0200
committerTor Andersson <tor@ghostscript.com>2005-04-04 08:58:34 +0200
commit0ba6f06f3e2cebf7cf519ce38dc8fdfe34734603 (patch)
treee70c5004059dbc4d8fdd245832e441b930fd86cc /render/pathscan.c
parentfb2db10b9760e7692ef16b4cf70bfae188b836af (diff)
downloadmupdf-0ba6f06f3e2cebf7cf519ce38dc8fdfe34734603.tar.xz
rename rect fields to x0 y0 x1 y1
Diffstat (limited to 'render/pathscan.c')
-rw-r--r--render/pathscan.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/render/pathscan.c b/render/pathscan.c
index 472b7de1..cea3a849 100644
--- a/render/pathscan.c
+++ b/render/pathscan.c
@@ -56,10 +56,10 @@ fz_irect
fz_boundgel(fz_gel *gel)
{
fz_irect bbox;
- bbox.min.x = fz_idiv(gel->xmin, gel->hs);
- bbox.min.y = fz_idiv(gel->ymin, gel->vs);
- bbox.max.x = fz_idiv(gel->xmax, gel->hs) + 1;
- bbox.max.y = fz_idiv(gel->ymax, gel->vs) + 1;
+ bbox.x0 = fz_idiv(gel->xmin, gel->hs);
+ bbox.y0 = fz_idiv(gel->ymin, gel->vs);
+ bbox.x1 = fz_idiv(gel->xmax, gel->hs) + 1;
+ bbox.y1 = fz_idiv(gel->ymax, gel->vs) + 1;
return bbox;
}
@@ -418,11 +418,11 @@ fz_scanconvert(fz_gel *gel, fz_ael *ael, int eofill, fz_irect clip,
int hs = gel->hs;
int vs = gel->vs;
- int skipx = clip.min.x - xmin;
- int clipn = clip.max.x - clip.min.x;
+ int skipx = clip.x0 - xmin;
+ int clipn = clip.x1 - clip.x0;
- assert(clip.min.x >= xmin);
- assert(clip.max.x <= xmax);
+ assert(clip.x0 >= xmin);
+ assert(clip.x1 <= xmax);
if (gel->len == 0)
return nil;
@@ -443,7 +443,7 @@ fz_scanconvert(fz_gel *gel, fz_ael *ael, int eofill, fz_irect clip,
yc = fz_idiv(y, vs);
if (yc != yd)
{
- if (yd >= clip.min.y && yd < clip.max.y)
+ if (yd >= clip.y0 && yd < clip.y1)
{
blit(pix, xmin + skipx, yd, deltas, skipx, clipn, rgb, over);
}
@@ -456,7 +456,7 @@ fz_scanconvert(fz_gel *gel, fz_ael *ael, int eofill, fz_irect clip,
return error;
}
- if (yd >= clip.min.y && yd < clip.max.y)
+ if (yd >= clip.y0 && yd < clip.y1)
{
if (eofill)
evenodd(ael, deltas, xofs, hs);
@@ -472,7 +472,7 @@ fz_scanconvert(fz_gel *gel, fz_ael *ael, int eofill, fz_irect clip,
y = gel->edges[e].y;
}
- if (yd >= clip.min.y && yd < clip.max.y)
+ if (yd >= clip.y0 && yd < clip.y1)
{
blit(pix, xmin + skipx, yd, deltas, skipx, clipn, rgb, over);
}