res list update
fixed
@@ -52,6 +52,19 @@ void GetResolutionsList(std::vector<std::string>& list)
}
deviceNum++;
}
+
+ if (list.empty())
+ {
+ list = { "160x120", "240x160", "320x240", "400x240", "480x320", "640x360", "640x480",
+ "768x480", "800x600", "854x480", "960x540", "960x640", "1024x576", "1024x768",
+ "1152x864", "1280x720", "1280x800", "1280x1024", "1280x1080", "1360x768", "1366x768",
+ "1400x1050", "1440x900", "1600x900", "1600x1200", "1680x1050", "1920x1080", "1920x1200",
+ "2048x1080", "2048x1152", "2048x1536", "2560x1080", "2560x1440", "2560x1600", "2560x2048",
+ "3200x1800", "3200x2048", "3200x2400", "3440x1440", "3840x1080", "3840x1600", "3840x2160",
+ "3840x2400", "4096x2160", "4096x3072", "5120x2160", "5120x2880", "5120x3200", "5120x4096",
+ "6400x4096", "6400x4800", "7680x4320", "7680x4800" };
+ }
+
std::sort(list.begin(), list.end(), [](const std::string& lhs, const std::string& rhs) {
int32_t x1, y1, x2, y2;
sscanf(lhs.c_str(), "%dx%d", &x1, &y1);
