Avoid important messages blocking view

This commit is contained in:
Alayan 2018-10-08 15:20:36 +02:00
parent 57d225dd68
commit 027705f9b1

View File

@ -248,7 +248,8 @@ void RaceGUIBase::drawAllMessages(const AbstractKart* kart,
}
// First line of text somewhat under the top of the viewport.
y = viewport.getCenter().Y;
y = viewport.UpperLeftCorner.Y +
(viewport.LowerRightCorner.Y - viewport.UpperLeftCorner.Y)/4;
gui::ScalableFont* font = GUIEngine::getFont();
gui::ScalableFont* big_font = GUIEngine::getTitleFont();