summaryrefslogtreecommitdiff
path: root/src/JSystem/JUtility/JUTXfb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSystem/JUtility/JUTXfb.cpp')
-rw-r--r--src/JSystem/JUtility/JUTXfb.cpp6
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;