diff options
author | Tor Andersson <tor@ghostscript.com> | 2005-06-06 21:17:03 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2005-06-06 21:17:03 +0200 |
commit | cb6f8bb32bc36b46e41eada10ed0ce72af1c8cac (patch) | |
tree | d252818df2f0eed7072b69e76ee17170cdad7a09 /raster/render.c | |
parent | 6c6c6faca9d763db6bc8fe756feda034cd2193d5 (diff) | |
download | mupdf-cb6f8bb32bc36b46e41eada10ed0ce72af1c8cac.tar.xz |
rename fz_colornode to fz_solidnode
Diffstat (limited to 'raster/render.c')
-rw-r--r-- | raster/render.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/raster/render.c b/raster/render.c index 36a9ed97..690ba227 100644 --- a/raster/render.c +++ b/raster/render.c @@ -101,7 +101,7 @@ DEBUG("}\n"); */ static fz_error * -rendercolor(fz_renderer *gc, fz_colornode *color, fz_matrix ctm) +rendersolid(fz_renderer *gc, fz_solidnode *solid, fz_matrix ctm) { fz_error *error; float rgb[3]; @@ -113,12 +113,12 @@ rendercolor(fz_renderer *gc, fz_colornode *color, fz_matrix ctm) if (gc->model->n != 3) return fz_throw("assert: non-rgb renderer"); - fz_convertcolor(color->cs, color->samples, gc->model, rgb); + fz_convertcolor(solid->cs, solid->samples, gc->model, rgb); gc->rgb[0] = rgb[0] * 255; gc->rgb[1] = rgb[1] * 255; gc->rgb[2] = rgb[2] * 255; -DEBUG("color %s [%d %d %d];\n", color->cs->name, gc->rgb[0], gc->rgb[1], gc->rgb[2]); +DEBUG("solid %s [%d %d %d];\n", solid->cs->name, gc->rgb[0], gc->rgb[1], gc->rgb[2]); if (gc->flag == FOVER) { @@ -661,11 +661,11 @@ rendermask(fz_renderer *gc, fz_masknode *mask, fz_matrix ctm) /* special case black voodo */ if (gc->flag & FOVER) { - if (fz_iscolornode(color)) + if (fz_issolidnode(color)) { - fz_colornode *colorn = (fz_colornode*)color; + fz_solidnode *solid = (fz_solidnode*)color; - fz_convertcolor(colorn->cs, colorn->samples, gc->model, rgb); + fz_convertcolor(solid->cs, solid->samples, gc->model, rgb); gc->rgb[0] = rgb[0] * 255; gc->rgb[1] = rgb[1] * 255; gc->rgb[2] = rgb[2] * 255; @@ -779,7 +779,7 @@ rendernode(fz_renderer *gc, fz_node *node, fz_matrix ctm) case FZ_NTRANSFORM: return rendertransform(gc, (fz_transformnode*)node, ctm); case FZ_NCOLOR: - return rendercolor(gc, (fz_colornode*)node, ctm); + return rendersolid(gc, (fz_solidnode*)node, ctm); case FZ_NPATH: return renderpath(gc, (fz_pathnode*)node, ctm); case FZ_NTEXT: |