mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
pl_u: Specify correct size for buffers in GetSharedFontInOrderOfPriority()
This WriteBuffer overload expects its size argument to be in bytes, not elements.
This commit is contained in:
parent
7eace8f512
commit
df001e83b1
1 changed files with 3 additions and 3 deletions
|
@ -132,9 +132,9 @@ void PL_U::GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx) {
|
||||||
font_sizes.push_back(SHARED_FONT_REGIONS[i].size);
|
font_sizes.push_back(SHARED_FONT_REGIONS[i].size);
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.WriteBuffer(font_codes.data(), font_codes.size(), 0);
|
ctx.WriteBuffer(font_codes.data(), font_codes.size() * sizeof(u32), 0);
|
||||||
ctx.WriteBuffer(font_offsets.data(), font_offsets.size(), 1);
|
ctx.WriteBuffer(font_offsets.data(), font_offsets.size() * sizeof(u32), 1);
|
||||||
ctx.WriteBuffer(font_sizes.data(), font_sizes.size(), 2);
|
ctx.WriteBuffer(font_sizes.data(), font_sizes.size() * sizeof(u32), 2);
|
||||||
|
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded
|
rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded
|
||||||
|
|
Loading…
Reference in a new issue