More d_message cleanup

This commit is contained in:
robojumper
2025-04-04 12:59:20 +02:00
parent 3535968370
commit 01d1c8c66a
7 changed files with 193 additions and 23 deletions
+1 -3
View File
@@ -300,8 +300,6 @@ s32 dTextBox_c::calcTextLines(const wchar_t *src, dTagProcessor_c *tagProcessor)
return tagProcessor->getNumLinesMaybe();
}
extern "C" const wchar_t *getTextMessageByLabel(const char *labelId, int, int, int);
void dTextBox_c::setMessageWithGlobalTextProcessor(const char *labelId, void *unused, void *unk, ...) {
va_list l;
va_start(l, str);
@@ -310,7 +308,7 @@ void dTextBox_c::setMessageWithGlobalTextProcessor(const char *labelId, void *un
}
void dTextBox_c::setMessageWithGlobalTextProcessorV(const char *labelId, void *unused, void *unk, va_list list) {
const wchar_t *text = getTextMessageByLabel(labelId, 1, 0, 0);
const wchar_t *text = dMessage_c::getTextMessageByLabel(labelId, true, nullptr, 0);
setTextWithGlobalTextProcessorV(text, unk, list);
if (GetFont() != nullptr) {
resizeTextToFit(GetSize().width);