Просмотр исходного кода

Merge pull request #4097 from kevinxucs/kevinxucs/device-pixel-scaling-float

Fix framebuffer size on fractional scaling display
bunnei 6 лет назад
Родитель
Сommit
6205965df9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/yuzu/bootmanager.cpp

+ 1 - 1
src/yuzu/bootmanager.cpp

@@ -360,7 +360,7 @@ QByteArray GRenderWindow::saveGeometry() {
 }
 
 qreal GRenderWindow::windowPixelRatio() const {
-    return devicePixelRatio();
+    return devicePixelRatioF();
 }
 
 std::pair<u32, u32> GRenderWindow::ScaleTouch(const QPointF& pos) const {