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

Method updateDisplayResolution

src/Menu/OptionsVideoState.cpp:373–383  ·  view source on GitHub ↗

* Updates the display resolution based on the selection. */

Source from the content-addressed store, hash-verified

371 * Updates the display resolution based on the selection.
372 */
373void OptionsVideoState::updateDisplayResolution()
374{
375 std::wostringstream ssW, ssH;
376 ssW << (int)_res[_resCurrent]->w;
377 ssH << (int)_res[_resCurrent]->h;
378 _txtDisplayWidth->setText(ssW.str());
379 _txtDisplayHeight->setText(ssH.str());
380
381 Options::newDisplayWidth = _res[_resCurrent]->w;
382 Options::newDisplayHeight = _res[_resCurrent]->h;
383}
384/**
385 * Changes the Display Width option.
386 * @param action Pointer to an action.

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected