ref: f89c755373cff88631fd789a0be8da586b259007
parent: 9ca2a22e5a79f562d1f808280165e816ca972d61
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sun Oct 4 02:17:14 EDT 2020
pdf: drawmbeg/drawmend are no longer supported
--- a/pdf.c
+++ b/pdf.c
@@ -865,15 +865,10 @@
{
}
-static int draw_path; /* number of path segments */
-static int draw_point; /* point was set for postscript newpath */
-
void drawbeg(void)
{
o_flush();
out_fontup();
- if (draw_path)
- return;
sbuf_printf(pg, "%s m\n", pdfpos(o_h, o_v));
}
@@ -881,9 +876,6 @@
void drawend(int close, int fill)
{
- if (draw_path)
- return;
- draw_point = 0;
fill = !fill ? 2 : fill;
if (l_page != page_n || l_size != o_s || l_wid != pdf_linewid ||
l_cap != pdf_linecap || l_join != pdf_linejoin) {
@@ -908,14 +900,10 @@
void drawmbeg(char *s)
{
- drawbeg();
- draw_path = 1;
}
void drawmend(char *s)
{
- draw_path = 0;
- drawend(1, ((!!strstr(s, "stroke")) << 1) + (!!strstr(s, "fill")));
}
void drawl(int h, int v)