summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-06-05 14:44:13 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-05 16:16:17 +0100
commit5cb7e4f2f01e3010c681ba15028b155ef8028bc4 (patch)
tree5ab3412201185a1280ba0fdaad23d87c573f7a34 /Userland/Games
parente2de02d2bb2cdfd0c5bb4f3f2ddbd5f9d9f7aa01 (diff)
downloadserenity-5cb7e4f2f01e3010c681ba15028b155ef8028bc4.zip
Chess: Paint move marker antialiased
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/Chess/ChessWidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Games/Chess/ChessWidget.cpp b/Userland/Games/Chess/ChessWidget.cpp
index 8c4097b8a4..3480d7ce1e 100644
--- a/Userland/Games/Chess/ChessWidget.cpp
+++ b/Userland/Games/Chess/ChessWidget.cpp
@@ -12,6 +12,7 @@
#include <LibCore/File.h>
#include <LibGUI/MessageBox.h>
#include <LibGUI/Painter.h>
+#include <LibGfx/AntiAliasingPainter.h>
#include <LibGfx/Font/Font.h>
#include <LibGfx/Font/FontDatabase.h>
#include <LibGfx/Path.h>
@@ -151,7 +152,8 @@ void ChessWidget::paint_event(GUI::PaintEvent& event)
move_point = { (7 - square.file) * tile_width, square.rank * tile_height };
}
- painter.fill_ellipse({ move_point + point_offset, rect_size }, Gfx::Color::LightGray);
+ Gfx::AntiAliasingPainter aa_painter { painter };
+ aa_painter.fill_ellipse({ move_point + point_offset, rect_size }, Gfx::Color::LightGray);
}
}