MCPcopy Create free account
hub / github.com/chrxh/alien / getSelectionIndex

Method getSelectionIndex

source/Gui/DisplaySettingsDialog.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109int DisplaySettingsDialog::getSelectionIndex() const
110{
111 auto result = 0;
112 if (!WindowController::get().isWindowedMode() && !WindowController::get().isDesktopMode()) {
113 auto userMode = WindowController::get().getUserDefinedResolution();
114 for (int i = 0; i < _videoModesCount; ++i) {
115 if (_videoModes[i] == userMode) {
116 return i + 1;
117 }
118 }
119 }
120 return result;
121}
122
123namespace
124{

Callers

nothing calls this directly

Calls 3

isWindowedModeMethod · 0.80
isDesktopModeMethod · 0.80

Tested by

no test coverage detected