mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-05 14:28:40 +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
|
||||
// Create the reflected pixmap
|
||||
QPixmap reflection(reflection_rect.size());
|
||||
QImage reflection(reflection_rect.size(), QImage::Format_ARGB32_Premultiplied);
|
||||
reflection.fill(Qt::transparent);
|
||||
QPainter p(&reflection);
|
||||
|
||||
@ -91,7 +91,7 @@ void FreeSpaceBar::paintEvent(QPaintEvent*) {
|
||||
// Draw on the widget
|
||||
p.begin(this);
|
||||
DrawBar(&p, bar_rect);
|
||||
p.drawPixmap(reflection_rect, reflection);
|
||||
p.drawImage(reflection_rect, reflection);
|
||||
DrawText(&p, labels_rect);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user