mirror of
https://github.com/zeldaret/ss
synced 2026-08-22 06:44:26 -04:00
More d_message cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user