mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
00279c0e04
commit
32e14755dd
1 changed files with 2 additions and 2 deletions
|
@ -881,7 +881,7 @@ void Graphics::drawgui(void)
|
||||||
{
|
{
|
||||||
y = 240 - y - 8*sc;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -917,7 +917,7 @@ void Graphics::drawgui(void)
|
||||||
{
|
{
|
||||||
y = 240 - y - 8*sc;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue