mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Allocate the right amount of font memory.
But it should be in multiple blocks...
This commit is contained in:
parent
afb188956f
commit
ba1f862c85
1 changed files with 2 additions and 2 deletions
|
@ -333,8 +333,8 @@ public:
|
|||
params_.numFonts = 9;
|
||||
}
|
||||
|
||||
// We use the same strange scheme that JPCSP uses.
|
||||
u32 allocSize = 4 + 4 * params_.numFonts;
|
||||
// Technically, this should be four separate allocations.
|
||||
u32 allocSize = 0x4C + params_.numFonts * 0x4C + params_.numFonts * 0x230 + (u32)internalFonts.size() * 0xA8;
|
||||
PostAllocCallback *action = (PostAllocCallback *) __KernelCreateAction(actionPostAllocCallback);
|
||||
action->SetFontLib(GetListID());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue