diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-04-09 16:43:46 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-04-09 16:59:59 +0200 |
commit | ccf6e828c570151b447449a10d759a4031a3c076 (patch) | |
tree | a5e98c4abe01e92cf45d54dfbb0bf8443b2bfe94 /plugingui/painter.cc | |
parent | 7386cfe7b6ed831c83137debffb6c54a50dd4992 (diff) |
WIP: Highlioghts and clicks re-enabled.scale_kit_image
Diffstat (limited to 'plugingui/painter.cc')
-rw-r--r-- | plugingui/painter.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugingui/painter.cc b/plugingui/painter.cc index cc7c66e..7f7b6c8 100644 --- a/plugingui/painter.cc +++ b/plugingui/painter.cc @@ -496,7 +496,12 @@ void Painter::drawRestrictedImageStretched(int x0, int y0, auto& c = image.getPixel(lx, ly); if(c == restriction_colour && c.alpha() > 0) { - pixbuf.addPixel(x0 + x, y0 + y, restriction_colour); + Colour col(restriction_colour); + int alpha = col.data()[3]; + alpha *= c.alpha(); + col.data()[3] = alpha / 255; + pixbuf.addPixel(x0 + x, y0 + y, col); + //pixbuf.addPixel(x0 + x, y0 + y, restriction_colour); } } } |