2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

fixed bg cache for tiled background, linux version background supported

This commit is contained in:
John Preston
2015-02-04 10:59:20 +03:00
parent bb4bba620c
commit 2f7c1cca78
3 changed files with 4 additions and 2 deletions

View File

@@ -720,7 +720,7 @@ void MainWidget::onCacheBackground() {
const QPixmap &bg(*cChatBackground());
if (cTileBackground()) {
QImage result(_willCacheFor.width() * cIntRetinaFactor(), _willCacheFor.height() * cIntRetinaFactor(), QImage::Format_RGB32);
result.setDevicePixelRatio(2);
result.setDevicePixelRatio(cRetinaFactor());
{
QPainter p(&result);
int left = 0, top = 0, right = _willCacheFor.width(), bottom = _willCacheFor.height();