OSDN Git Service

remove unused QX11Data::PatternFills::opaque member
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 17 Jun 2020 23:03:03 +0000 (23:03 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 17 Jun 2020 23:03:03 +0000 (23:03 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qt_x11_p.h
src/gui/painting/qpaintengine_x11.cpp

index 0937e32..5c2bb5e 100644 (file)
@@ -283,7 +283,6 @@ struct QX11Data
         XRenderColor bg_color;
         int screen;
         int style;
-        bool opaque;
         Picture picture;
     } pattern_fills[pattern_fill_count];
     Picture getSolidFill(int screen, const QColor &c);
index d97f076..6c4e3f7 100644 (file)
@@ -264,7 +264,6 @@ static Picture getPatternFill(int screen, const QBrush &b)
 
     for (int i = 0; i < qt_x11Data->pattern_fill_count; ++i) {
         if (qt_x11Data->pattern_fills[i].screen == screen
-            && qt_x11Data->pattern_fills[i].opaque == false
             && qt_x11Data->pattern_fills[i].style == b.style()
             && qt_x11Data->pattern_fills[i].color.alpha == color.alpha
             && qt_x11Data->pattern_fills[i].color.red == color.red
@@ -297,7 +296,6 @@ static Picture getPatternFill(int screen, const QBrush &b)
     qt_x11Data->pattern_fills[i].screen = screen;
     qt_x11Data->pattern_fills[i].color = color;
     qt_x11Data->pattern_fills[i].bg_color = bg_color;
-    qt_x11Data->pattern_fills[i].opaque = false;
     qt_x11Data->pattern_fills[i].style = b.style();
 
     XRenderFillRectangle(qt_x11Data->display, PictOpSrc, qt_x11Data->pattern_fills[i].picture, &bg_color, 0, 0, 8, 8);