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

Method btnDisplayResolutionUpClick

src/Menu/OptionsVideoState.cpp:336–349  ·  view source on GitHub ↗

* Selects a bigger display resolution. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

334 * @param action Pointer to an action.
335 */
336void OptionsVideoState::btnDisplayResolutionUpClick(Action *)
337{
338 if (_resAmount == 0)
339 return;
340 if (_resCurrent <= 0)
341 {
342 _resCurrent = _resAmount-1;
343 }
344 else
345 {
346 _resCurrent--;
347 }
348 updateDisplayResolution();
349}
350
351/**
352 * Selects a smaller display resolution.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected