Fix media viewer regression.

This commit is contained in:
John Preston 2021-01-09 13:55:50 +04:00
parent adc8d6a6d1
commit 8ae1b10b91
2 changed files with 3 additions and 3 deletions

View file

@ -454,7 +454,7 @@ void OverlayWidget::moveToScreen() {
}
void OverlayWidget::updateGeometry() {
if (!Platform::IsMac()) {
if (Platform::IsLinux()) {
return;
}
const auto screen = windowHandle() && windowHandle()->screen()
@ -483,8 +483,8 @@ void OverlayWidget::updateControlsGeometry() {
_saveMsg.moveTo((width() - _saveMsg.width()) / 2, (height() - _saveMsg.height()) / 2);
_photoRadialRect = QRect(QPoint((width() - st::radialSize.width()) / 2, (height() - st::radialSize.height()) / 2), st::radialSize);
resizeContentByScreenSize();
updateControls();
resizeContentByScreenSize();
update();
}

@ -1 +1 @@
Subproject commit 513c635602ae1bb05e17bce1d6af2cb040bf4ae3
Subproject commit b85f5e9a25171c08a0e9486c27f07331e26ff1eb