| 616 | } |
| 617 | |
| 618 | static inline |
| 619 | unsigned int invertColor(const unsigned int color) noexcept |
| 620 | { |
| 621 | return (color & 0xff000000) |
| 622 | | (0xff0000 - (color & 0xff0000)) |
| 623 | | (0xff00 - (color & 0xff00)) |
| 624 | | (0xff - (color & 0xff)); |
| 625 | } |
| 626 | |
| 627 | static inline |
| 628 | bool invertPaintForDarkMode(const DarkMode mode, NSVGshape* const shape, NSVGpaint& paint, const char* const svgFileToInvert) |
no outgoing calls
no test coverage detected