mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 01:11:48 +01:00
Fix framebuffer size on fractional scaling display.
This commit is contained in:
parent
c4a4b40b2d
commit
265b0aa444
@ -266,7 +266,7 @@ QByteArray GRenderWindow::saveGeometry() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
qreal GRenderWindow::windowPixelRatio() const {
|
qreal GRenderWindow::windowPixelRatio() const {
|
||||||
return devicePixelRatio();
|
return devicePixelRatioF();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::pair<u32, u32> GRenderWindow::ScaleTouch(const QPointF pos) const {
|
std::pair<u32, u32> GRenderWindow::ScaleTouch(const QPointF pos) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user