MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _GFXInitGetInitialRes

Function _GFXInitGetInitialRes

Engine/source/gfx/gfxInit.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87inline static void _GFXInitGetInitialRes(GFXVideoMode &vm)
88{
89 // cache the desktop size of the main screen
90 GFXVideoMode desktopVm = GFXInit::getDesktopResolution();
91
92 // load pref variables, properly choose windowed / fullscreen
93 const String resString = Con::getVariable("$pref::Video::mode");
94
95 // Parse video mode settings from pref string
96 vm.parseFromString(resString);
97}
98
99GFXInit::RegisterDeviceSignal& GFXInit::getRegisterDeviceSignal()
100{

Callers 1

getInitialVideoModeMethod · 0.85

Calls 2

getVariableFunction · 0.85
parseFromStringMethod · 0.80

Tested by

no test coverage detected