feat(console): add CONSOLELINE destructor

This commit is contained in:
Tristan Cormier authored and fallenoak committed 2025-11-21 19:22:22 -06:00
1 parent 6dc7f8dce3
commit 0ff6dc3112
2 files changed
+13

No files matched your search

+10
View File
@@ -40,6 +40,16 @@ static CImVector s_colorArray[] = {
{ 0x00, 0x00, 0x00, 0xC0 }, // BACKGROUND_COLOR
};
CONSOLELINE::~CONSOLELINE() {
if (this->buffer) {
STORM_FREE(this->buffer);
}
if (this->fontPointer) {
GxuFontDestroyString(this->fontPointer);
}
}
void DrawBackground() {
uint16_t indices[] = {
0, 1, 2, 3
+3
View File
@@ -16,6 +16,9 @@ class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
uint32_t inputstart;
COLOR_T colorType;
CGxString* fontPointer;
// Member functions
~CONSOLELINE();
};
void ConsoleScreenAnimate(float elapsedSec);