2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix build on macOS.

This commit is contained in:
John Preston
2022-06-10 17:38:52 +04:00
parent 0e90092d59
commit bcfbdcd6ed
6 changed files with 13 additions and 13 deletions

View File

@@ -422,7 +422,7 @@ void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
}
const auto width = st::premiumVideoWidth;
const auto height = state->blurred.height()
? state->blurred.height()
? (state->blurred.height() / state->blurred.devicePixelRatio())
: width;
const auto left = (st::boxWideWidth - width) / 2;
const auto top = st::premiumPreviewHeight - height;