mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 16:58:07 +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