MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / PsDash

Function PsDash

xdevice.cpp:1475–1486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1473// Set the dash length to be used by PostScript line commands.
1474
1475void PsDash(int dashoff)
1476{
1477 if (dashoff != gi.nDash) {
1478 PsStrokeForce();
1479 if (dashoff)
1480 fprintf(gi.file, "[%d %d", PSMUL, dashoff * PSMUL);
1481 else
1482 fprintf(gi.file, "[");
1483 fprintf(gi.file, "]0 setdash\n");
1484 gi.nDash = dashoff;
1485 }
1486}
1487
1488
1489// Set a linewidth size to be used by PostScript figure primitive commands.

Callers 3

DrawDashFunction · 0.85
DrawArcFunction · 0.85
DrawEllipse2Function · 0.85

Calls 1

PsStrokeForceFunction · 0.85

Tested by

no test coverage detected