mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09: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:
parent
6876dbf70c
commit
9d20f754bc
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,17 @@ int tr;
|
|||
int tg;
|
||||
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()
|
||||
{
|
||||
int temp = 50;
|
||||
|
|
Loading…
Reference in a new issue