MCPcopy Create free account
hub / github.com/doldecomp/mkdd / heapBar

Function heapBar

libs/JSystem/JUtility/JUTProcBar.cpp:244–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244static void heapBar(JKRHeap *param_0, int param_1, int param_2, int param_3, int param_4,
245 int param_5)
246{
247 int stack52 = param_1 + addrToXPos(param_0->getStartAddr(), param_4);
248 int var1 = param_1 + addrToXPos(param_0->getEndAddr(), param_4);
249 int stack36 = byteToXLen(param_0->getTotalFreeSize(), param_4);
250 J2DFillBox(stack52, param_2 - param_5 * 2 + param_5 / 2, var1 - stack52, param_5 / 2,
251 JUtility::TColor(255, 0, 200, 255));
252 J2DFillBox(stack52, param_2 - param_5 * 2 + param_5 / 2, stack36, param_5 / 2,
253 JUtility::TColor(255, 180, 250, 255));
254}
255
256/*
257Probably close to TP Debug, currently matches TP and MKDD(pik2 probably too)

Callers 1

drawHeapBarMethod · 0.85

Calls 7

addrToXPosFunction · 0.85
byteToXLenFunction · 0.85
J2DFillBoxFunction · 0.85
TColorClass · 0.85
getStartAddrMethod · 0.80
getEndAddrMethod · 0.80
getTotalFreeSizeMethod · 0.80

Tested by

no test coverage detected