1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibGfx: Avoid unaligned loads and stores in GlyphBitmap

This commit is contained in:
Ali Mohammad Pur 2021-11-22 09:16:03 +03:30 committed by Brian Gianforcaro
parent 71298ad9ba
commit 3ca00c8ae6
3 changed files with 24 additions and 23 deletions

View file

@ -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;