From 6fcf4e48f89c448a4f7bc09b150e5dcaee7e6008 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Sun, 23 Feb 2020 12:11:45 +0100 Subject: [PATCH] LibGfx: Fix accidentally hardcoded font height in Font::clone() --- Libraries/LibGfx/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibGfx/Font.cpp b/Libraries/LibGfx/Font.cpp index 02668da35f7..9d815964a37 100644 --- a/Libraries/LibGfx/Font.cpp +++ b/Libraries/LibGfx/Font.cpp @@ -108,7 +108,7 @@ NonnullRefPtr Font::clone() const memcpy(new_widths, m_glyph_widths, 256); else memset(new_widths, m_glyph_width, 256); - return adopt(*new Font(m_name, new_rows, new_widths, m_fixed_width, m_glyph_width, 12, m_glyph_spacing)); + return adopt(*new Font(m_name, new_rows, new_widths, m_fixed_width, m_glyph_width, m_glyph_height, m_glyph_spacing)); } NonnullRefPtr Font::create(u8 glyph_height, u8 glyph_width, bool fixed)