mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix render glitches in passcodebox.
This commit is contained in:
@@ -563,7 +563,10 @@ void Widget::startWidthAnimation() {
|
||||
QImage::Format_ARGB32_Premultiplied);
|
||||
image.setDevicePixelRatio(cRetinaFactor());
|
||||
image.fill(Qt::transparent);
|
||||
_scroll->render(&image, QPoint(0, 0), QRect(QPoint(0, 0), grabGeometry.size()), QWidget::DrawChildren | QWidget::IgnoreMask);
|
||||
{
|
||||
QPainter p(&image);
|
||||
Ui::RenderWidget(p, _scroll);
|
||||
}
|
||||
_widthAnimationCache = App::pixmapFromImageInPlace(std::move(image));
|
||||
_scroll->setGeometry(scrollGeometry);
|
||||
_scroll->hide();
|
||||
|
Reference in New Issue
Block a user