Fix rendering on non HiDPI screens

This commit is contained in:
Cameron Armstrong (Nightfox)
2021-03-28 09:05:36 +08:00
parent dac2b4ff16
commit 08b217ab5f
5 changed files with 14 additions and 9 deletions
+8 -2
View File
@@ -30,8 +30,14 @@ ApplicationWindow{
height: 768
// Save window properties automatically
onXChanged: appSettings.x = x
onYChanged: appSettings.y = y
onXChanged: {
appSettings.x = x
appSettings.pixelRatio = Window.devicePixelRatio
}
onYChanged: {
appSettings.y = y
appSettings.pixelRatio = Window.devicePixelRatio
}
onWidthChanged: appSettings.width = width
onHeightChanged: appSettings.height = height