diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-16 16:43:31 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | 6776229047c0f5aac540fc9c367e4abbf5302322 (patch) | |
tree | 7fbb643e28155e37d784770894f419383a6bc8e9 /src/os/macosx | |
parent | 70aa3b401145ec6bb98073a2758206cf63e15da1 (diff) | |
download | openttd-6776229047c0f5aac540fc9c367e4abbf5302322.tar.xz |
Codechange: Make the simple Malloc sprite allocator globally usable.
Diffstat (limited to 'src/os/macosx')
-rw-r--r-- | src/os/macosx/font_osx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/macosx/font_osx.cpp b/src/os/macosx/font_osx.cpp index 04e5db9ab..f5ceed850 100644 --- a/src/os/macosx/font_osx.cpp +++ b/src/os/macosx/font_osx.cpp @@ -333,7 +333,7 @@ const Sprite *CoreTextFontCache::InternalGetGlyph(GlyphID key, bool use_aa) } GlyphEntry new_glyph; - new_glyph.sprite = BlitterFactory::GetCurrentBlitter()->Encode(&sprite, AllocateFont); + new_glyph.sprite = BlitterFactory::GetCurrentBlitter()->Encode(&sprite, SimpleSpriteAlloc); new_glyph.width = (byte)std::round(CTFontGetAdvancesForGlyphs(this->font.get(), kCTFontOrientationDefault, &glyph, nullptr, 1)); this->SetGlyphPtr(key, &new_glyph); |