fix for dpi scalling on sgct edit screen; fixes #1493;

This commit is contained in:
Micah Acinapura
2022-04-18 19:11:37 -04:00
parent acc6f5c3db
commit 36a4ba53d4

View File

@@ -52,8 +52,8 @@ void SgctEdit::systemMonitorConfiguration(const QList<QScreen*>& screenList) {
_monitorSizeList.push_back({
screenList[s]->availableGeometry().x(),
screenList[s]->availableGeometry().y(),
actualWidth,
actualHeight
static_cast<int>(actualWidth * screenList[s]->devicePixelRatio()),
static_cast<int>(actualHeight * screenList[s]->devicePixelRatio())
});
}
_nMaxWindows = (_monitorSizeList.size() == 1) ? 3 : 4;