From 83f31cb4a7d5724e59a4baf05bd46d092dc15be9 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 7 Dec 2022 20:50:34 +0000 Subject: LibGfx: Add int overloads for (AntiAliasing)Painter float methods Without this change, the upcoming LibWeb pixel types will require a silly doubled conversion in some places. eg: `some_rect.to_type().to_type()` With these overloads, we can get away with `some_rect.to_type()`. --- Userland/Libraries/LibGfx/Painter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibGfx/Painter.h') diff --git a/Userland/Libraries/LibGfx/Painter.h b/Userland/Libraries/LibGfx/Painter.h index c3e878b3ca..1669386b36 100644 --- a/Userland/Libraries/LibGfx/Painter.h +++ b/Userland/Libraries/LibGfx/Painter.h @@ -96,6 +96,7 @@ public: void draw_circle_arc_intersecting(IntRect const&, IntPoint, int radius, Color, int thickness); // Streamlined text drawing routine that does no wrapping/elision/alignment. + void draw_text_run(IntPoint baseline_start, Utf8View const&, Font const&, Color); void draw_text_run(FloatPoint baseline_start, Utf8View const&, Font const&, Color); enum class CornerOrientation { -- cgit v1.2.3