Commit 85b68d76 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

katetabbar: Fix drag pixmap size on high-dpi

One needs to multiply the size by dpr, too, otherwise it's cut off.

(cherry picked from commit 9ccb1690)
parent bf82dfe7
Pipeline #174254 passed with stage
in 6 minutes and 32 seconds
......@@ -253,7 +253,7 @@ void KateTabBar::mouseMoveEvent(QMouseEvent *event)
int tab = tabAt(dragStartPos);
QRect rect = tabRect(tab);
QPixmap p(rect.size());
QPixmap p(rect.size() * this->devicePixelRatioF());
p.setDevicePixelRatio(this->devicePixelRatioF());
p.fill(Qt::transparent);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment