JUtility debug (#3020)

This commit is contained in:
Jcw87
2026-01-05 04:07:04 -08:00
committed by GitHub
parent 29d2308308
commit 3726054a99
39 changed files with 494 additions and 467 deletions
+3 -3
View File
@@ -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;