update decomp.me scratches

This commit is contained in:
SwareJonge 2023-01-06 16:17:13 +01:00
parent cca15337f1
commit 246c17abf4

View File

@ -120,7 +120,10 @@ void JUTProcBar::draw() {
drawHeapBar();
}
// Matches the one from TP, size mismatch for MKDD https://decomp.me/scratch/YKjcF
/*
MKDD: https://decomp.me/scratch/1Q2Ke
TP: https://decomp.me/scratch/YKjcF
*/
void JUTProcBar::drawProcessBar() {
if (mVisible)
{
@ -242,7 +245,7 @@ int byteToXLen(int param_0, int param_1) {
return param_1 * (param_0 / (float)JKRHeap::getMemorySize());
}
// Size mismatch for MKDD
// TP: https://decomp.me/scratch/7uyoR
void heapBar(JKRHeap *param_0, int param_1, int param_2, int param_3, int param_4, int param_5) {
int stack52 = param_1 + addrToXPos(param_0->getStartAddr(), param_4);
int var1 = param_1 + addrToXPos(param_0->getEndAddr(), param_4);
@ -251,6 +254,10 @@ void heapBar(JKRHeap *param_0, int param_1, int param_2, int param_3, int param_
J2DFillBox(stack52, param_2 - param_5 * 2 + param_5 / 2, stack36, param_5 / 2, JUtility::TColor(255, 180, 250, 255));
}
/*
MKDD: https://decomp.me/scratch/L9TUx
TP: https://decomp.me/scratch/Mi52V
*/
#define intmul(a, b) (a * b)
void JUTProcBar::drawHeapBar() { // a match is a match
int barWidth, var1, posX, width, posY; // this is probably incorrect, however it fixed the regswap for TP