--- a/src/polygoncache.cpp Mon Apr 10 14:21:17 2023 +0300 +++ b/src/polygoncache.cpp Mon Apr 10 14:25:19 2023 +0300 @@ -82,7 +82,7 @@ template<typename Fn, typename Fn2> static void collectPolygons( const ParsedLine& element, - Winding& winding, + winding_e& winding, GetPolygonsContext* context, Fn&& add, Fn2&& reserve) @@ -96,13 +96,13 @@ foundinvertnext = true; } else if (text == QStringLiteral("BFC CERTIFY CW")) { - winding = Clockwise; + winding = winding_e::clockwise; } else if (text == QStringLiteral("BFC CERTIFY CCW")) { - winding = Anticlockwise; + winding = winding_e::anticlockwise; } else if (text == QStringLiteral("BFC NOCERTIFY")) { - winding = NoWinding; + winding = winding_e::none; } }, [&](const LineType2& line2) { @@ -147,12 +147,12 @@ const QTextDocument* model, GetPolygonsContext* context) { - Winding winding = NoWinding; + winding_e winding = winding_e::none; std::vector<WithId<PolygonElement>> result; int i = 0; const auto add = [&result, &winding, &i](int lineno, const PolygonElement& poly){ result.push_back({poly, i}); - if (lineno != 1 and winding == Winding::Clockwise) { + if (lineno != 1 and winding == winding_e::clockwise) { gl::invert(result.back()); } };