2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix PiP window on macOS.

This commit is contained in:
John Preston
2020-01-29 18:54:40 +03:00
parent 0fbd263562
commit 4d737b35da
5 changed files with 11 additions and 10 deletions

View File

@@ -706,7 +706,6 @@ void Panel::paintEvent(QPaintEvent *e) {
finishAnimating();
if (!_call || isHidden()) return;
} else {
Ui::Platform::StartTranslucentPaint(p, e);
p.setOpacity(opacity);
PainterHighQualityEnabler hq(p);
@@ -719,7 +718,6 @@ void Panel::paintEvent(QPaintEvent *e) {
}
if (_useTransparency) {
Ui::Platform::StartTranslucentPaint(p, e);
p.drawPixmapLeft(0, 0, width(), _cache);
} else {
p.drawPixmapLeft(_padding.left(), _padding.top(), width(), _userPhoto);