summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/BitmapFont.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-11-22 09:16:03 +0330
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-11-22 21:10:25 -0800
commit3ca00c8ae6858869e08a9827fb9b3ddc511110f6 (patch)
tree11e81ac5bf31604c58759f359ef31e06f5819707 /Userland/Libraries/LibGfx/BitmapFont.h
parent71298ad9baf4e9ef245cb4febbad35bf355befd8 (diff)
downloadserenity-3ca00c8ae6858869e08a9827fb9b3ddc511110f6.zip
LibGfx: Avoid unaligned loads and stores in GlyphBitmap
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.h')
-rw-r--r--Userland/Libraries/LibGfx/BitmapFont.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/BitmapFont.h b/Userland/Libraries/LibGfx/BitmapFont.h
index 85a636c963..5734fe64ec 100644
--- a/Userland/Libraries/LibGfx/BitmapFont.h
+++ b/Userland/Libraries/LibGfx/BitmapFont.h
@@ -106,7 +106,7 @@ public:
String qualified_name() const override;
private:
- BitmapFont(String name, String family, u32* rows, u8* widths, bool is_fixed_width,
+ BitmapFont(String name, String family, u8* rows, u8* widths, bool is_fixed_width,
u8 glyph_width, u8 glyph_height, u8 glyph_spacing, u16 range_mask_size, u8* range_mask,
u8 baseline, u8 mean_line, u8 presentation_size, u16 weight, u8 slope, bool owns_arrays = false);
@@ -126,7 +126,7 @@ private:
u8* m_range_mask { nullptr };
Vector<Optional<size_t>> m_range_indices;
- u32* m_rows { nullptr };
+ u8* m_rows { nullptr };
u8* m_glyph_widths { nullptr };
RefPtr<MappedFile> m_mapped_file;