1
0
Fork 0
forked from suyu/suyu

Fix framebuffer size on fractional scaling display.

This commit is contained in:
Kaiwen Xu 2020-06-16 20:45:20 -07:00
parent 0f57bbfa3f
commit 7a59eeb5be

View file

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