Fix build on 5.9/mingw

This commit is contained in:
Sergio Martins
2020-09-18 16:59:01 +01:00
parent 72785cf869
commit 7b2ec52831

View File

@@ -295,7 +295,7 @@ bool WidgetResizeHandler::handleWindowsNativeEvent(FloatingWindow *w, const QByt
const QRect availableGeometry = screen->availableGeometry();
auto mmi = reinterpret_cast<MINMAXINFO *>(msg->lParam);
const int dpr = screen->devicePixelRatio();
const qreal dpr = screen->devicePixelRatio();
mmi->ptMaxSize.y = availableGeometry.height() * dpr;
mmi->ptMaxSize.x = availableGeometry.width() * dpr - 1; // -1 otherwise it gets bogus size