2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 16:35:44 +00:00

New settings build ready in Xcode.

This commit is contained in:
John Preston
2016-08-28 14:23:32 -06:00
parent 2aab8bbae8
commit 605a45c8ba
14 changed files with 281 additions and 58 deletions

View File

@@ -1792,7 +1792,7 @@ QPixmap MainWidget::cachedBackground(const QRect &forRect, int &x, int &y) {
}
void MainWidget::backgroundParams(const QRect &forRect, QRect &to, QRect &from) const {
auto &bg = Window::chatBackground()->image().size();
auto bg = Window::chatBackground()->image().size();
if (uint64(bg.width()) * forRect.height() > uint64(bg.height()) * forRect.width()) {
float64 pxsize = forRect.height() / float64(bg.height());
int takewidth = qCeil(forRect.width() / pxsize);