Fixed race messages appearing in wrong viewport when playing with 3 or 4 players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7398 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
30e6f2323e
commit
bf3b23210f
@ -1004,8 +1004,8 @@ void RaceGUI::drawAllMessages(const Kart* kart,
|
|||||||
{
|
{
|
||||||
int y = viewport.LowerRightCorner.Y - m_small_font_max_height - 10;
|
int y = viewport.LowerRightCorner.Y - m_small_font_max_height - 10;
|
||||||
|
|
||||||
const int x = (viewport.LowerRightCorner.X - viewport.UpperLeftCorner.X)/2;
|
const int x = (viewport.LowerRightCorner.X + viewport.UpperLeftCorner.X)/2;
|
||||||
const int w = (viewport.LowerRightCorner.X + viewport.UpperLeftCorner.X)/2;
|
const int w = (viewport.LowerRightCorner.X - viewport.UpperLeftCorner.X);
|
||||||
|
|
||||||
// draw less important first, at the very top of the screen
|
// draw less important first, at the very top of the screen
|
||||||
for (AllMessageType::const_iterator i = m_messages.begin();
|
for (AllMessageType::const_iterator i = m_messages.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user