Clear background when using a theme with transparent background

This partially reverts 6ffd0f2e92

While we do not support transparent themes per se, we still use the alpha colors and thus would previously fill the background using alpha, into a layer that we hadn’t previously cleared.
This commit is contained in:
Allan Odgaard
2020-05-17 08:15:22 +07:00
parent af8b51f629
commit 66c1bc7f78

View File

@@ -1210,6 +1210,12 @@ doScroll:
return;
}
if(self.theme->is_transparent())
{
[NSColor.clearColor set];
NSRectFill(aRect);
}
CGContextRef context = NSGraphicsContext.currentContext.CGContext;
if(!self.antiAlias)
CGContextSetShouldAntialias(context, false);