| 35 | } |
| 36 | |
| 37 | static void doNotchTransparencyHack(QImage& image) |
| 38 | { |
| 39 | for (int y = 0; y < 32; y++) { |
| 40 | QRgb* line = reinterpret_cast<QRgb*>(image.scanLine(y)); |
| 41 | for (int x = 32; x < 64; x++) { |
| 42 | if (qAlpha(line[x]) < 128) { |
| 43 | return; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | setAlpha(image, { 32, 0, 32, 32 }, 0); |
| 49 | } |
| 50 | |
| 51 | static QImage improveSkin(QImage skin) |
| 52 | { |
no test coverage detected