mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Attempt to handle UI scaling range on retina displays
This commit is contained in:
parent
f4d383a354
commit
a7b1fa819f
@ -127,7 +127,7 @@ QSize CSettingsView::getPreferredRenderingResolution()
|
|||||||
return QSize(resX, resY);
|
return QSize(resX, resY);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return QApplication::primaryScreen()->geometry().size();
|
return QApplication::primaryScreen()->geometry().size() * QApplication::primaryScreen()->devicePixelRatio();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSettingsView::fillValidScalingRange()
|
void CSettingsView::fillValidScalingRange()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user