|
@@ -1563,7 +1563,15 @@ void OBSBasicSettings::LoadResolutionLists()
|
|
|
|
|
|
for (QScreen *screen : QGuiApplication::screens()) {
|
|
|
QSize as = screen->size();
|
|
|
- addRes(as.width(), as.height());
|
|
|
+ uint32_t as_width = as.width();
|
|
|
+ uint32_t as_height = as.height();
|
|
|
+
|
|
|
+ // Calculate physical screen resolution based on the virtual screen resolution
|
|
|
+ // They might differ if scaling is enabled, e.g. for HiDPI screens
|
|
|
+ as_width = round(as_width * screen->devicePixelRatio());
|
|
|
+ as_height = round(as_height * screen->devicePixelRatio());
|
|
|
+
|
|
|
+ addRes(as_width, as_height);
|
|
|
}
|
|
|
|
|
|
addRes(1920, 1080);
|