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

Method btnDisplayResolutionDownClick

src/Menu/OptionsVideoState.cpp:355–368  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

353 * @param action Pointer to an action.
354 */
355void OptionsVideoState::btnDisplayResolutionDownClick(Action *)
356{
357 if (_resAmount == 0)
358 return;
359 if (_resCurrent >= _resAmount-1)
360 {
361 _resCurrent = 0;
362 }
363 else
364 {
365 _resCurrent++;
366 }
367 updateDisplayResolution();
368}
369
370/**
371 * Updates the display resolution based on the selection.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected