mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
157b1d9a48
When text is emptied by user action, e.g. backspace, the formattting should be preserved. In the game Majestic a text box for user input would start out with the correct formatting, i.e. green text on a black background. When the user would then press backspace till the text was gone, the method `MacText::getTextChunk` would return an empty string, with the formatting removed. If the user started typing again the text would use the default formatting with black text on black background. Fixes: https://trello.com/c/POQZRCEO/546-text-doesnt-show-in-majestic-in-text-box