Make sure onscreen messages are shown, even when a console doesn't exist.

This commit is contained in:
Stephen Anthony 2018-05-27 16:41:42 -02:30
parent a5ce457b72
commit 1eee879e29
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ void FrameBuffer::showMessage(const string& message, MessagePosition position,
// Precompute the message coordinates
myMsg.text = message;
myMsg.counter = uInt32(myOSystem.frameRate()) << 1; // Show message for 2 seconds
if(myMsg.counter == 0) myMsg.counter = 60;
myMsg.color = kBtnTextColor;
myMsg.w = font().getStringWidth(myMsg.text) + 10;