Skip to content

Commit 6a64c06

Browse files
committed
Cleanup.
1 parent d922884 commit 6a64c06

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ext/_os.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "_os.h"
22

3+
#include <pybind11/pybind11.h>
4+
35
#if defined __linux__ || defined __APPLE__
46
#include <dlfcn.h>
57
#include <execinfo.h>
@@ -11,8 +13,6 @@
1113
#include <Windows.h>
1214
#endif
1315

14-
#include <pybind11/pybind11.h>
15-
1616
namespace mplcairo::os {
1717

1818
namespace py = pybind11;

ext/_util.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,11 @@ void fill_and_stroke_exact(
651651
cairo_set_source_rgba(cr, r, g, b, a);
652652
if (path.is(detail::UNIT_CIRCLE) && !has_vector_surface(cr)) {
653653
// Abuse the degenerate-segment handling by cairo to rasterize
654-
// circles efficiently. Don't do this on vector backends both
655-
// because the user may technically want the actual path, and because
656-
// Inkscape does not render circle markers on zero-sized paths
657-
// (FIXME[inkscape] https://bugs.launchpad.net/inkscape/+bug/689562).
654+
// circles efficiently. Don't do this on vector backends because cairo
655+
// doesn't use arc primitives anyways (see cairo-arc.c), because the
656+
// user may technically want the actual path, and because Inkscape
657+
// does not render circle markers on zero-sized paths (FIXME[inkscape]
658+
// https://bugs.launchpad.net/inkscape/+bug/689562).
658659
cairo_save(cr);
659660
cairo_new_path(cr);
660661
cairo_move_to(cr, matrix->x0, matrix->y0);

0 commit comments

Comments
 (0)