mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
LibGfx: Draw window frame border radii antialiased
I think this now looks very nice :^)
This commit is contained in:
parent
51e54ab1ba
commit
7628f1f233
Notes:
sideshowbarker
2024-07-18 00:41:35 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/7628f1f233 Pull-request: https://github.com/SerenityOS/serenity/pull/12979 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/mustafaquraish
@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <AK/StringView.h>
|
||||
#include <LibGfx/AntiAliasingPainter.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/CharacterBitmap.h>
|
||||
#include <LibGfx/ClassicStylePainter.h>
|
||||
@ -303,7 +304,8 @@ void ClassicStylePainter::paint_window_frame(Painter& painter, IntRect const& re
|
||||
// FIXME: This will draw "useless" pixels that'll get drawn over by the window contents.
|
||||
// preferrably we should just remove the corner pixels from the completely drawn window
|
||||
// but I don't know how to do that yet. :^)
|
||||
painter.fill_rect_with_rounded_corners(rect, base_color, border_radius);
|
||||
AntiAliasingPainter aa_painter { painter };
|
||||
aa_painter.fill_rect_with_rounded_corners(rect, base_color, border_radius);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user