MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / switchDisplay

Function switchDisplay

src/Engine/Options.cpp:634–644  ·  view source on GitHub ↗

* Switches old/new display options for temporarily * testing a new display setup. */

Source from the content-addressed store, hash-verified

632 * testing a new display setup.
633 */
634void switchDisplay()
635{
636 std::swap(displayWidth, newDisplayWidth);
637 std::swap(displayHeight, newDisplayHeight);
638 std::swap(useOpenGL, newOpenGL);
639 std::swap(useScaleFilter, newScaleFilter);
640 std::swap(battlescapeScale, newBattlescapeScale);
641 std::swap(geoscapeScale, newGeoscapeScale);
642 std::swap(useHQXFilter, newHQXFilter);
643 std::swap(useOpenGLShader, newOpenGLShader);
644}
645
646}
647}

Callers 2

btnNoClickMethod · 0.85
btnOkClickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected