Take in account device pixel ratio when setting window extents

This commit is contained in:
Ilya Fedin 2021-02-12 17:03:15 +04:00 committed by John Preston
parent 34fc25a56c
commit e14bc4681d

View file

@ -11,6 +11,7 @@
#include "ui/widgets/window.h"
#include "ui/widgets/shadow.h"
#include "ui/painter.h"
#include "ui/style/style_core_scale.h"
#include "styles/style_widgets.h"
#include "styles/style_layers.h"
@ -356,7 +357,7 @@ void DefaultWindowHelper::updateWindowExtents() {
if (hasShadow()) {
Platform::SetWindowExtents(
window()->windowHandle(),
resizeArea());
resizeArea() * style::DevicePixelRatio());
_extentsSet = true;
} else if (_extentsSet) {