diff options
author | asynts <asynts@gmail.com> | 2021-01-23 23:29:11 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-25 09:47:36 +0100 |
commit | 1a3a0836c017ab5e5672472033f3ff369dc33c39 (patch) | |
tree | 354552e5dae4f7baf2b8ee05eb33e2f7587826f6 /Userland/Libraries/LibGfx/Painter.cpp | |
parent | 76f29184162e35d570034a8438a683695faa273f (diff) | |
download | serenity-1a3a0836c017ab5e5672472033f3ff369dc33c39.zip |
Everywhere: Use CMake to generate AK/Debug.h.
This was done with the help of several scripts, I dump them here to
easily find them later:
awk '/#ifdef/ { print "#cmakedefine01 "$2 }' AK/Debug.h.in
for debug_macro in $(awk '/#ifdef/ { print $2 }' AK/Debug.h.in)
do
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/#ifdef '$debug_macro'/#if '$debug_macro'/' {} \;
done
# Remember to remove WRAPPER_GERNERATOR_DEBUG from the list.
awk '/#cmake/ { print "set("$2" ON)" }' AK/Debug.h.in
Diffstat (limited to 'Userland/Libraries/LibGfx/Painter.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/Painter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index e98cec2c8a..89dc36b6e9 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -1620,7 +1620,7 @@ void Painter::fill_path(Path& path, Color color, WindingRule winding_rule) quick_sort(active_list, [](const auto& line0, const auto& line1) { return line1.x < line0.x; }); -#ifdef FILL_PATH_DEBUG +#if FILL_PATH_DEBUG if ((int)scanline % 10 == 0) { draw_text(IntRect(active_list.last().x - 20, scanline, 20, 10), String::number((int)scanline)); } @@ -1692,7 +1692,7 @@ void Painter::fill_path(Path& path, Color color, WindingRule winding_rule) } } -#ifdef FILL_PATH_DEBUG +#if FILL_PATH_DEBUG size_t i { 0 }; for (auto& segment : segments) { draw_line(Point<int>(segment.from), Point<int>(segment.to), Color::from_hsv(i++ * 360.0 / segments.size(), 1.0, 1.0), 1); |