bool gvtextlayout(GVC_t *gvc, textspan_t *span, char **fontpath);
/* loadimage */
- void gvloadimage(GVJ_t *job, usershape_t *us, boxf b, boolean filled, const char *target);
+ void gvloadimage(GVJ_t *job, usershape_t *us, boxf b, bool filled, const char *target);
/* usershapes */
point gvusershape_size_dpi(usershape_t *us, pointf dpi);
/* for agerr() */
#include <cgraph/cgraph.h>
+#include <stdbool.h>
static int gvloadimage_select(GVJ_t * job, char *str)
{
return NO_SUPPORT;
}
-void gvloadimage(GVJ_t * job, usershape_t *us, boxf b, boolean filled, const char *target)
+void gvloadimage(GVJ_t * job, usershape_t *us, boxf b, bool filled, const char *target)
{
gvloadimage_engine_t *gvli;
char type[SMALLBUF];
agerr (AGWARN, "No loadimage plugin for \"%s\"\n", type);
if ((gvli = job->loadimage.engine) && gvli->loadimage)
- gvli->loadimage(job, us, b, filled);
+ gvli->loadimage(job, us, b, filled ? TRUE : FALSE);
}
b.UR.y = d;
}
if (gvre) {
- gvloadimage(job, us, b, filled, job->render.type);
+ gvloadimage(job, us, b, filled != FALSE, job->render.type);
}
}