Fix render glitches in passcodebox.

This commit is contained in:
John Preston
2019-04-26 13:43:57 +04:00
parent d74992b85b
commit 0b26475300
7 changed files with 56 additions and 21 deletions
@@ -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);