mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Seek done in video player in MediaView. Some memory leaks fixed.
Using pixmapFromImageInPlace() instead of QPixmap::fromImage().
This commit is contained in:
@@ -1753,7 +1753,7 @@ void SettingsInner::updateChatBackground() {
|
||||
p.setRenderHint(QPainter::SmoothPixmapTransform);
|
||||
p.drawPixmap(0, 0, st::setBackgroundSize, st::setBackgroundSize, pix, sx, sy, s, s);
|
||||
}
|
||||
_background = QPixmap::fromImage(back);
|
||||
_background = App::pixmapFromImageInPlace(std_::move(back));
|
||||
_background.setDevicePixelRatio(cRetinaFactor());
|
||||
_needBackgroundUpdate = false;
|
||||
|
||||
|
Reference in New Issue
Block a user