summaryrefslogtreecommitdiff
path: root/Applications/FontEditor/GlyphMapWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/FontEditor/GlyphMapWidget.cpp')
-rw-r--r--Applications/FontEditor/GlyphMapWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Applications/FontEditor/GlyphMapWidget.cpp b/Applications/FontEditor/GlyphMapWidget.cpp
index e252e617cc..9ec1355f4c 100644
--- a/Applications/FontEditor/GlyphMapWidget.cpp
+++ b/Applications/FontEditor/GlyphMapWidget.cpp
@@ -60,11 +60,11 @@ void GlyphMapWidget::set_selected_glyph(int glyph)
update();
}
-Gfx::Rect GlyphMapWidget::get_outer_rect(int glyph) const
+Gfx::IntRect GlyphMapWidget::get_outer_rect(int glyph) const
{
int row = glyph / columns();
int column = glyph % columns();
- return Gfx::Rect {
+ return Gfx::IntRect {
column * (font().max_glyph_width() + m_horizontal_spacing) + 1,
row * (font().glyph_height() + m_vertical_spacing) + 1,
font().max_glyph_width() + m_horizontal_spacing,
@@ -89,8 +89,8 @@ void GlyphMapWidget::paint_event(GUI::PaintEvent& event)
painter.fill_rect(frame_inner_rect(), palette().base());
for (int glyph = 0; glyph < m_glyph_count; ++glyph) {
- Gfx::Rect outer_rect = get_outer_rect(glyph);
- Gfx::Rect inner_rect(
+ Gfx::IntRect outer_rect = get_outer_rect(glyph);
+ Gfx::IntRect inner_rect(
outer_rect.x() + m_horizontal_spacing / 2,
outer_rect.y() + m_vertical_spacing / 2,
font().max_glyph_width(),