summaryrefslogtreecommitdiff
path: root/mm/2s2h/Enhancements/Graphics/DisableBlackBars.cpp
blob: aba718e261bc95019256e1d5e356c57196a7692e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <libultraship/bridge/consolevariablebridge.h>
#include "2s2h/GameInteractor/GameInteractor.h"
#include "2s2h/ShipInit.hpp"

#define CVAR_NAME "gEnhancements.Graphics.DisableBlackBars"
#define CVAR CVarGetInteger(CVAR_NAME, 0)

void RegisterDisableBlackBars() {
    COND_VB_SHOULD(VB_DISABLE_LETTERBOX, CVAR, { *should = true; });
}

static RegisterShipInitFunc initFunc(RegisterDisableBlackBars, { CVAR_NAME });