mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix render glitches in passcodebox.
This commit is contained in:
@@ -304,11 +304,14 @@ QImage TabbedPanel::grabForAnimation() {
|
||||
showChildren();
|
||||
Ui::SendPendingMoveResizeEvents(this);
|
||||
|
||||
auto result = QImage(size() * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied);
|
||||
auto result = QImage(
|
||||
size() * cIntRetinaFactor(),
|
||||
QImage::Format_ARGB32_Premultiplied);
|
||||
result.setDevicePixelRatio(cRetinaFactor());
|
||||
result.fill(Qt::transparent);
|
||||
if (_selector) {
|
||||
_selector->render(&result, _selector->geometry().topLeft());
|
||||
QPainter p(&result);
|
||||
Ui::RenderWidget(p, _selector, _selector->pos());
|
||||
}
|
||||
|
||||
_a_show = base::take(showAnimation);
|
||||
|
||||
Reference in New Issue
Block a user