* Add the refresh rate from the config and the refresh rates from all the monitors to * our list of refresh rates shown in the GUI. */
| 162 | * our list of refresh rates shown in the GUI. |
| 163 | */ |
| 164 | static void AddCustomRefreshRates() |
| 165 | { |
| 166 | /* Add the refresh rate as selected in the config. */ |
| 167 | _refresh_rates.insert(_settings_client.gui.refresh_rate); |
| 168 | |
| 169 | /* Add all the refresh rates of all monitors connected to the machine. */ |
| 170 | std::vector<int> monitor_rates = VideoDriver::GetInstance()->GetListOfMonitorRefreshRates(); |
| 171 | std::copy(monitor_rates.begin(), monitor_rates.end(), std::inserter(_refresh_rates, _refresh_rates.end())); |
| 172 | } |
| 173 | |
| 174 | static const int SCALE_NMARKS = (MAX_INTERFACE_SCALE - MIN_INTERFACE_SCALE) / 25 + 1; // Show marks at 25% increments |
| 175 | static const int VOLUME_NMARKS = 9; // Show 5 values and 4 empty marks. |
no test coverage detected