mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix centering of translated "Level Complete!" and "Game Complete!"
Operator precedence meant that `sc == 2 ? PR_2X : PR_1X | PR_CEN` didn't work how I expected it to. So I added some parentheses.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
00279c0e04
commit
32e14755dd
@@ -881,7 +881,7 @@ void Graphics::drawgui(void)
|
||||
{
|
||||
y = 240 - y - 8*sc;
|
||||
}
|
||||
font::print(sc==2 ? PR_2X : PR_1X | PR_CEN, -1, y, translation, 164, 164, 255);
|
||||
font::print((sc==2 ? PR_2X : PR_1X) | PR_CEN, -1, y, translation, 164, 164, 255);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -917,7 +917,7 @@ void Graphics::drawgui(void)
|
||||
{
|
||||
y = 240 - y - 8*sc;
|
||||
}
|
||||
font::print(sc==2 ? PR_2X : PR_1X | PR_CEN, -1, y, translation, 196, 196, 243);
|
||||
font::print((sc==2 ? PR_2X : PR_1X) | PR_CEN, -1, y, translation, 196, 196, 243);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user