Only fill with “clear color” for transparent themes

This commit is contained in:
Allan Odgaard
2012-09-10 19:58:50 +02:00
parent b88ba4ff23
commit fe5d47272e

View File

@@ -581,8 +581,11 @@ static std::string shell_quote (std::vector<std::string> paths)
- (void)drawRect:(NSRect)aRect
{
[[NSColor clearColor] set];
NSRectFill(aRect); // Only necessary when theme uses a transparent background.
if(theme && theme->is_transparent())
{
[[NSColor clearColor] set];
NSRectFill(aRect);
}
CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
if(!antiAlias)