Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/WebViewportItem.cpp b/src/WebViewportItem.cpp
- index 1e6c3ad..8e6716e 100644
- --- a/src/WebViewportItem.cpp
- +++ b/src/WebViewportItem.cpp
- @@ -254,7 +254,7 @@ static const unsigned checkerSize = 16;
- static const unsigned checkerColor1 = 0xff555555;
- static const unsigned checkerColor2 = 0xffaaaaaa;
- -static QPixmap& checkeredPixmap()
- +static QPixmap& checkeredPixmap(const QColor& overlayColor)
- {
- static QPixmap* pixmap;
- if (!pixmap) {
- @@ -269,6 +269,7 @@ static QPixmap& checkeredPixmap()
- alternate = !alternate;
- }
- }
- + painter.fillRect(pixmap->rect(), overlayColor);
- }
- return *pixmap;
- }
- @@ -280,7 +281,7 @@ void WebViewportItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* o
- QRect targetRect = option->exposedRect.toAlignedRect();
- QPoint targetPoint = QPoint(targetRect.left() % checkerSize, targetRect.top() % checkerSize);
- - painter->drawTiledPixmap(targetRect, checkeredPixmap(), targetPoint);
- + painter->drawTiledPixmap(targetRect, checkeredPixmap(QColor(255, 255, 255, 128)), targetPoint);
- QRectF topRect(0, - s_dropShadowLength, width, s_dropShadowLength);
- painter->fillRect(topRect, topDropShadowBrush());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement