From 3ca00c8ae6858869e08a9827fb9b3ddc511110f6 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 22 Nov 2021 09:16:03 +0330 Subject: LibGfx: Avoid unaligned loads and stores in GlyphBitmap --- Userland/Libraries/LibGfx/BitmapFont.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibGfx/BitmapFont.h') 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> m_range_indices; - u32* m_rows { nullptr }; + u8* m_rows { nullptr }; u8* m_glyph_widths { nullptr }; RefPtr m_mapped_file; -- cgit v1.2.3