mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-21 22:25:39 +01:00
Fix free space bar rendering on mac.
This commit is contained in:
parent
b1a96fd54d
commit
cef7e2a69e
@ -65,7 +65,7 @@ void FreeSpaceBar::paintEvent(QPaintEvent*) {
|
|||||||
|
|
||||||
// Draw the reflection
|
// Draw the reflection
|
||||||
// Create the reflected pixmap
|
// Create the reflected pixmap
|
||||||
QPixmap reflection(reflection_rect.size());
|
QImage reflection(reflection_rect.size(), QImage::Format_ARGB32_Premultiplied);
|
||||||
reflection.fill(Qt::transparent);
|
reflection.fill(Qt::transparent);
|
||||||
QPainter p(&reflection);
|
QPainter p(&reflection);
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ void FreeSpaceBar::paintEvent(QPaintEvent*) {
|
|||||||
// Draw on the widget
|
// Draw on the widget
|
||||||
p.begin(this);
|
p.begin(this);
|
||||||
DrawBar(&p, bar_rect);
|
DrawBar(&p, bar_rect);
|
||||||
p.drawPixmap(reflection_rect, reflection);
|
p.drawImage(reflection_rect, reflection);
|
||||||
DrawText(&p, labels_rect);
|
DrawText(&p, labels_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user