Blame SOURCES/kmag-make-border-around-arrow-cursor-bright.patch
|
|
1ff421 |
diff --git a/kmagzoomview.cpp b/kmagzoomview.cpp
|
|
|
1ff421 |
index 8976118..0a13e20 100644
|
|
|
1ff421 |
--- a/kmagzoomview.cpp
|
|
|
1ff421 |
+++ b/kmagzoomview.cpp
|
|
|
1ff421 |
@@ -380,9 +380,16 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, const QPoint &mousePos)
|
|
|
1ff421 |
pz.setPen(Qt::black);
|
|
|
1ff421 |
pz.setBackground(Qt::white);
|
|
|
1ff421 |
|
|
|
1ff421 |
- QBitmap sCursor = QBitmap::fromData( QSize(16, 16), left_ptr_bits);
|
|
|
1ff421 |
+ QPixmap sCursor(16, 16);
|
|
|
1ff421 |
+ QBitmap cursor = QBitmap::fromData( QSize(16, 16), left_ptr_bits);
|
|
|
1ff421 |
QBitmap mask = QBitmap::fromData( QSize(16, 16), left_ptrmsk_bits);
|
|
|
1ff421 |
sCursor.setMask(mask);
|
|
|
1ff421 |
+ QPainter p(&sCursor);
|
|
|
1ff421 |
+ p.setPen(Qt::gray);
|
|
|
1ff421 |
+ p.drawPixmap(0, 0, mask);
|
|
|
1ff421 |
+ p.setPen(Qt::black);
|
|
|
1ff421 |
+ p.drawPixmap(0, 0, cursor);
|
|
|
1ff421 |
+ p.end();
|
|
|
1ff421 |
sCursor = sCursor.transformed(m_zoomMatrix);
|
|
|
1ff421 |
|
|
|
1ff421 |
// since hot spot is at 3,1
|