fixed fullscreen window margin

This commit is contained in:
fourtf 2019-08-26 22:29:54 +02:00
parent a831c1d5d8
commit 4dc4a37360

View file

@ -760,7 +760,8 @@ bool BaseWindow::handleSIZE(MSG *msg)
{ {
if (msg->wParam == SIZE_MAXIMIZED) if (msg->wParam == SIZE_MAXIMIZED)
{ {
auto offset = int(this->scale() * 8); auto offset = int(
getWindowDpi(HWND(this->winId())).value_or(96) * 8 / 96);
this->ui_.windowLayout->setContentsMargins(offset, offset, this->ui_.windowLayout->setContentsMargins(offset, offset,
offset, offset); offset, offset);