mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibGfx: Fix accidentally hardcoded font height in Font::clone()
This commit is contained in:
parent
bfd86c4631
commit
6fcf4e48f8
Notes:
sideshowbarker
2024-07-19 09:08:41 +09:00
Author: https://github.com/xTibor
Commit: 6fcf4e48f8
Pull-request: https://github.com/SerenityOS/serenity/pull/1282
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ NonnullRefPtr<Font> Font::clone() const
|
||||||
memcpy(new_widths, m_glyph_widths, 256);
|
memcpy(new_widths, m_glyph_widths, 256);
|
||||||
else
|
else
|
||||||
memset(new_widths, m_glyph_width, 256);
|
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> Font::create(u8 glyph_height, u8 glyph_width, bool fixed)
|
NonnullRefPtr<Font> Font::create(u8 glyph_height, u8 glyph_width, bool fixed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue