Skip to content

Commit 261721a

Browse files
Re #218 Don't leak pixelated data (#729)
Before this change, pixelization would often "leak" unpixelized data "under" pixelized data. This change removes the ability to do alpha blending from the pixelized rectangle.
1 parent 71405b0 commit 261721a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/shutter/resources/modules/Shutter/Draw/DrawingTool.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,7 @@ sub get_pixelated_pixbuf_from_canvas {
24252425
my $sh = $item->get('height');
24262426

24272427
#create surface and cairo context
2428-
my $surface = Cairo::ImageSurface->create('argb32', $bounds->x1 + $sw, $bounds->y1 + $sh);
2428+
my $surface = Cairo::ImageSurface->create('rgb24', $bounds->x1 + $sw, $bounds->y1 + $sh);
24292429
my $cr = Cairo::Context->create($surface);
24302430

24312431
#hide rects and image

0 commit comments

Comments
 (0)