1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 18:19:43 +01:00

Add macro-like inline func FLIP()

This will be used to keep some text positions the same when in Flip
Mode, instead of having to copy and paste code.

This function being at the very top of the file kind of violates
locality, but it has to be done because it can't be a macro.
This commit is contained in:
Misa 2020-06-20 19:12:27 -07:00 committed by Ethan Lee
parent 6876dbf70c
commit 9d20f754bc

View file

@ -14,6 +14,17 @@ int tr;
int tg; int tg;
int tb; int tb;
// Macro-like inline function used in maprender()
// Used to keep some text positions the same in Flip Mode
int inline FLIP(int ypos)
{
if (graphics.flipmode)
{
return 220 - ypos;
}
return ypos;
}
void menurender() void menurender()
{ {
int temp = 50; int temp = 50;