DIRECTOR: Field text is always black in Director

This commit is contained in:
Eugene Sandulenko 2020-05-02 21:11:06 +02:00
parent a64462a60f
commit 0c0ea1c778

View File

@ -889,7 +889,7 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo
if (sprite->_editable) {
if (!textCast->_widget) {
warning("Creating MacEditableText with '%s'", toPrintable(textCast->_ftext).c_str());
textCast->_widget = new Graphics::MacEditableText(score->_window, x, y, width, height, g_director->_wm, textCast->_ftext, new Graphics::MacFont(), sprite->_foreColor, sprite->_backColor, width);
textCast->_widget = new Graphics::MacEditableText(score->_window, x, y, width, height, g_director->_wm, textCast->_ftext, new Graphics::MacFont(), 0, 255, width);
warning("Finished creating MacEditableText");
}