Display IDs were supposed to be continuous, but a recent fix to crashing Windows code changed this. Now some IDs can be skipped, and there will be valid IDs that are >= displays.size().
@@ -61,7 +61,7 @@ DMVideoModePtr DisplayManager::getCurrentVideoMode(int display)
}
///////////////////////////////////////////////////////////////////////////////////////////////////
-bool DisplayManager::isValidDisplay(int display) { return display >= 0 && display < displays.size(); }
+bool DisplayManager::isValidDisplay(int display) { return displays.contains(display); }
bool DisplayManager::isValidDisplayMode(int display, int mode)