mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Update pdfioContentSetDashPattern to accept doubles (Issue #25)
This commit is contained in:
@@ -660,11 +660,11 @@ pdfioContentSave(pdfio_stream_t *st) // I - Stream
|
||||
bool // O - `true` on success, `false` on failure
|
||||
pdfioContentSetDashPattern(
|
||||
pdfio_stream_t *st, // I - Stream
|
||||
int phase, // I - Phase (offset within pattern)
|
||||
int on, // I - On length
|
||||
int off) // I - Off length
|
||||
double phase, // I - Phase (offset within pattern)
|
||||
double on, // I - On length
|
||||
double off) // I - Off length
|
||||
{
|
||||
return (pdfioStreamPrintf(st, "[%d %d] %d d\n", on, off, phase));
|
||||
return (pdfioStreamPrintf(st, "[%g %g] %g d\n", on, off, phase));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user