mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add and use scaling mode enum
This enum is to just make each mode be readable, instead of mysterious 0/1/2 values. It's not a strictly-typed enum because we still have to serialize it as ints in the XML, but it's better than just leaving them as ints. This also adds a NUM_SCALING_MODES enum, so we don't have to hardcode that 3 when cycling scaling modes anymore.
This commit is contained in:
@@ -318,12 +318,13 @@ static void menurender(void)
|
||||
|
||||
switch (gameScreen.scalingMode)
|
||||
{
|
||||
case 2:
|
||||
case SCALING_INTEGER:
|
||||
graphics.Print( -1, 85, "Current mode: INTEGER", tr, tg, tb, true);
|
||||
break;
|
||||
case 1:
|
||||
case SCALING_STRETCH:
|
||||
graphics.Print( -1, 85, "Current mode: STRETCH", tr, tg, tb, true);
|
||||
break;
|
||||
case SCALING_LETTERBOX:
|
||||
default:
|
||||
graphics.Print( -1, 85, "Current mode: LETTERBOX", tr, tg, tb, true);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user