|
|
@ -470,8 +470,14 @@ void drawBlendedRect(TQPainter *p, const TQRect &r, const TQColor &color, int al
|
|
|
|
if (pix.isNull() || last_color != color || last_alpha != alpha)
|
|
|
|
if (pix.isNull() || last_color != color || last_alpha != alpha)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQImage img(16, 16, 32);
|
|
|
|
TQImage img(16, 16, 32);
|
|
|
|
|
|
|
|
#ifdef USE_QT4
|
|
|
|
img.setAlphaBuffer(true);
|
|
|
|
img.setAlphaBuffer(true);
|
|
|
|
img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
|
|
|
|
img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
|
|
|
|
|
|
|
|
#else // USE_QT4
|
|
|
|
|
|
|
|
img.setAlphaBuffer(false);
|
|
|
|
|
|
|
|
img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
|
|
|
|
|
|
|
|
img.setAlphaBuffer(true);
|
|
|
|
|
|
|
|
#endif // USE_QT4
|
|
|
|
pix.convertFromImage(img);
|
|
|
|
pix.convertFromImage(img);
|
|
|
|
last_color = color;
|
|
|
|
last_color = color;
|
|
|
|
last_alpha = alpha;
|
|
|
|
last_alpha = alpha;
|
|
|
|