summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-01-01 19:42:00 +0100
committerAndreas Kling <kling@serenityos.org>2023-01-05 12:09:35 +0100
commita1726b1ba5aa6d19949f682936b3ee95b368a370 (patch)
treed705f35edafff49b9e8680cc967d4f0401d77569 /Userland/Services
parent68f678f566b533396a9c629784289ae3653f40ed (diff)
downloadserenity-a1726b1ba5aa6d19949f682936b3ee95b368a370.zip
LibGfx: Avoid rounding/truncating glyph positions till blitting
This keeps some overloads that accept ints to avoid adding calls to .to_type<float>() all over the place.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WindowServer/Overlays.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/WindowServer/Overlays.cpp b/Userland/Services/WindowServer/Overlays.cpp
index 0fa782341a..5724837038 100644
--- a/Userland/Services/WindowServer/Overlays.cpp
+++ b/Userland/Services/WindowServer/Overlays.cpp
@@ -213,7 +213,7 @@ Gfx::Font const& ScreenNumberOverlay::font()
void ScreenNumberOverlay::render_overlay_bitmap(Gfx::Painter& painter)
{
- painter.draw_text({ {}, rect().size() }, DeprecatedString::formatted("{}", m_screen.index() + 1), font(), Gfx::TextAlignment::Center, Color::White);
+ painter.draw_text(Gfx::IntRect { {}, rect().size() }, DeprecatedString::formatted("{}", m_screen.index() + 1), font(), Gfx::TextAlignment::Center, Color::White);
}
Gfx::IntRect ScreenNumberOverlay::calculate_content_rect_for_screen(Screen& screen)
@@ -264,7 +264,7 @@ void WindowGeometryOverlay::update_rect()
void WindowGeometryOverlay::render_overlay_bitmap(Gfx::Painter& painter)
{
- painter.draw_text({ {}, rect().size() }, m_label, WindowManager::the().font(), Gfx::TextAlignment::Center, Color::White);
+ painter.draw_text(Gfx::IntRect { {}, rect().size() }, m_label, WindowManager::the().font(), Gfx::TextAlignment::Center, Color::White);
}
void WindowGeometryOverlay::window_rect_changed()