mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed fullscreen window margin
This commit is contained in:
parent
a831c1d5d8
commit
4dc4a37360
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue