Remove antialias option and show free memory on HUD

This commit is contained in:
Ryan Dwyer
2022-11-04 17:06:29 +10:00
parent d89fef7ea9
commit 6f1ac34fc4
3 changed files with 8 additions and 31 deletions
+6 -7
View File
@@ -87,6 +87,8 @@
#include "lib/lib_06440.h"
#include "lib/lib_317f0.h"
#include "lib/main.h"
#include "lib/mema.h"
#include "lib/memp.h"
#include "lib/mtx.h"
#include "lib/music.h"
#include "lib/rng.h"
@@ -951,7 +953,6 @@ void lvFindThreats(void)
}
u8 g_LvShowRates = 0;
u8 g_LvAntialias = 1;
u8 g_LvRateIndex = 59;
u8 g_LvFrameRates[60];
@@ -1065,7 +1066,10 @@ Gfx *lvPrintRateText(Gfx *gdl)
}
x = 10;
sprintf(buffer, "Antialias %s\n", g_LvAntialias ? "on" : "off");
sprintf(buffer, "mema free %d KB\n", memaGetLongestFree() / 1024);
gdl = textRender(gdl, &x, &y, buffer, g_CharsHandelGothicXs, g_FontHandelGothicXs, 0x00ff00a0, 0x000000a0, viGetWidth(), viGetHeight(), 0, 0);
sprintf(buffer, "memp free %d KB\n", mempGetStageFree() / 1024);
gdl = textRender(gdl, &x, &y, buffer, g_CharsHandelGothicXs, g_FontHandelGothicXs, 0x00ff00a0, 0x000000a0, viGetWidth(), viGetHeight(), 0, 0);
}
@@ -1078,11 +1082,6 @@ Gfx *lvPrint(Gfx *gdl)
g_LvShowRates = 1 - g_LvShowRates;
}
if (joyGetButtonsPressedThisFrame(0, U_JPAD)) {
g_LvAntialias = 1 - g_LvAntialias;
viUpdateMode();
}
lvRecordRate();
if (g_LvShowRates) {