Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/corelib/theme/mimagedirectory.cpp
- +++ b/src/corelib/theme/mimagedirectory.cpp
- @@ -82,6 +82,18 @@ MPixmapHandle ImageResource::fetchPixmap(const QSize &size)
- }
- }
- + for (int x = 0; x < image.width(); ++x) {
- + for (int y = 0; y < image.height(); ++y) {
- + QRgb pixel = image.pixel(x, y);
- + if (pixel == qRgba(0, 0, 0, 0)) {
- + image.setPixel(QPoint(x, y), qRgb(255, 0, 127));
- + } else if (qAlpha(pixel) < 255) {
- + image.setPixel(QPoint(x, y), qRgb(0, 255, 127));
- + }
- + }
- + }
- +
- +
- #ifdef Q_WS_X11
- if (convertToX11) {
- Pixmap x11Pixmap = XCreatePixmap(QX11Info::display(), QX11Info::appRootWindow(),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement