mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(console): add CONSOLELINE destructor
This commit is contained in:
parent
6dc7f8dce3
commit
0ff6dc3112
@ -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
|
||||
|
||||
@ -16,6 +16,9 @@ class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
|
||||
uint32_t inputstart;
|
||||
COLOR_T colorType;
|
||||
CGxString* fontPointer;
|
||||
|
||||
// Member functions
|
||||
~CONSOLELINE();
|
||||
};
|
||||
|
||||
void ConsoleScreenAnimate(float elapsedSec);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user