diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2026-01-05 04:07:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-05 04:07:04 -0800 |
| commit | 5b987084eac71e044ace3ebe21f62d5410b23e62 (patch) | |
| tree | 5e11e8c9054c7cfde2220fc08f96ea4d6781e83b /src/JSystem/JUtility/JUTXfb.cpp | |
| parent | e15ba03caac09f55e3055cbd2bf6d214e9d94372 (diff) | |
JUtility debug (#3020)
Diffstat (limited to 'src/JSystem/JUtility/JUTXfb.cpp')
| -rw-r--r-- | src/JSystem/JUtility/JUTXfb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/JSystem/JUtility/JUTXfb.cpp b/src/JSystem/JUtility/JUTXfb.cpp index 73d9c1889a..3557f7d8c1 100644 --- a/src/JSystem/JUtility/JUTXfb.cpp +++ b/src/JSystem/JUtility/JUTXfb.cpp @@ -69,11 +69,11 @@ void JUTXfb::initiate(u16 width, u16 height, JKRHeap* pHeap, JUTXfb::EXfbNumber int size = (u16)((u16)width + 0xf & ~0xf) * height * 2; - mBuffer[0] = ::operator new[](size, pHeap, 0x20); + mBuffer[0] = new (pHeap, 0x20) u8[size]; mXfbAllocated[0] = true; if (xfbNum >= 2) { - mBuffer[1] = ::operator new[](size, pHeap, 0x20); + mBuffer[1] = new (pHeap, 0x20) u8[size]; mXfbAllocated[1] = true; } else { mBuffer[1] = NULL; @@ -81,7 +81,7 @@ void JUTXfb::initiate(u16 width, u16 height, JKRHeap* pHeap, JUTXfb::EXfbNumber } if (xfbNum >= 3) { - mBuffer[2] = ::operator new[](size, pHeap, 0x20); + mBuffer[2] = new (pHeap, 0x20) u8[size]; mXfbAllocated[2] = true; } else { mBuffer[2] = NULL; |
