mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
Chess: Paint move marker antialiased
This commit is contained in:
parent
e2de02d2bb
commit
5cb7e4f2f0
Notes:
sideshowbarker
2024-07-17 10:26:59 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/5cb7e4f2f0 Pull-request: https://github.com/SerenityOS/serenity/pull/14195 Reviewed-by: https://github.com/linusg ✅
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue