From 5e766f7b7bf2116f3fc240a2d3f3dc85e0b7b130 Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 4 Feb 2022 09:12:05 +0000 Subject: [PATCH] Fix transparency not working when drawing images --- frontends/gnustep/PlotView.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontends/gnustep/PlotView.m b/frontends/gnustep/PlotView.m index 4e7a3ad8b..da0f42720 100644 --- a/frontends/gnustep/PlotView.m +++ b/frontends/gnustep/PlotView.m @@ -192,9 +192,8 @@ static nserror plot_bitmap(const struct redraw_context *ctx, struct bitmap *bitm [tf scaleXBy: 1.0 yBy: -1.0]; [tf translateXBy: 0 yBy: -offset]; [GSCurrentContext() GSSetCTM: tf]; - [[NSColor redColor] set]; - [GSCurrentContext() setCompositingOperation: NSCompositeSourceOver]; - [bmp drawInRect: rect]; + [bmp drawInRect: rect fromRect: NSMakeRect(0, 0, width, height) + operation: NSCompositeSourceOver fraction: 1.0 respectFlipped: NO hints: nil]; [NSGraphicsContext restoreGraphicsState];