DBG+GUI: (hopefully) fixed some random bugs with the status label
This commit is contained in:
parent
8aa848b467
commit
11bc98c371
|
|
@ -1,7 +1,5 @@
|
|||
#include "console.h"
|
||||
|
||||
static char msg[66000];
|
||||
|
||||
void dputs(const char* text)
|
||||
{
|
||||
dprintf("%s\n", text);
|
||||
|
|
@ -11,7 +9,7 @@ void dprintf(const char* format, ...)
|
|||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
*msg = 0;
|
||||
vsnprintf(msg, sizeof(msg), format, args);
|
||||
Memory<char*> msg(66000);
|
||||
vsnprintf(msg, msg.size(), format, args);
|
||||
GuiAddLogMessage(msg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ void StatusLabel::debugStateChangedSlot(DBGSTATE state)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
this->repaint();
|
||||
}
|
||||
|
||||
void StatusLabel::logUpdate(QString message)
|
||||
|
|
@ -52,4 +53,5 @@ void StatusLabel::logUpdate(QString message)
|
|||
labelText = "";
|
||||
labelText += message;
|
||||
setText(labelText);
|
||||
this->repaint();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue