summaryrefslogtreecommitdiff
path: root/source/fitz/draw-edge.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/draw-edge.c')
-rw-r--r--source/fitz/draw-edge.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/fitz/draw-edge.c b/source/fitz/draw-edge.c
index 0da45331..4465d90a 100644
--- a/source/fitz/draw-edge.c
+++ b/source/fitz/draw-edge.c
@@ -23,6 +23,7 @@ struct fz_aa_context_s
int scale;
int bits;
int text_bits;
+ float min_line_width;
};
void fz_new_aa_context(fz_context *ctx)
@@ -205,6 +206,24 @@ fz_set_graphics_aa_level(fz_context *ctx, int level)
#endif
}
+void
+fz_set_graphics_min_line_width(fz_context *ctx, float min_line_width)
+{
+ if (!ctx || !ctx->aa)
+ return;
+
+ ctx->aa->min_line_width = min_line_width;
+}
+
+float
+fz_graphics_min_line_width(fz_context *ctx)
+{
+ if (!ctx || !ctx->aa)
+ return 0;
+
+ return ctx->aa->min_line_width;
+}
+
/*
* Global Edge List -- list of straight path segments for scan conversion
*