| 227 | } |
| 228 | |
| 229 | std::vector<int> VideoDriver_SDL_Base::GetListOfMonitorRefreshRates() |
| 230 | { |
| 231 | std::vector<int> rates = {}; |
| 232 | for (int i = 0; i < SDL_GetNumVideoDisplays(); i++) { |
| 233 | SDL_DisplayMode mode = {}; |
| 234 | if (SDL_GetDisplayMode(i, 0, &mode) != 0) continue; |
| 235 | if (mode.refresh_rate != 0) rates.push_back(mode.refresh_rate); |
| 236 | } |
| 237 | return rates; |
| 238 | } |
| 239 | |
| 240 | |
| 241 | struct SDLVkMapping { |
no test coverage detected