diff options
Diffstat (limited to 'cocoa/InfoBar.mm')
-rw-r--r-- | cocoa/InfoBar.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 07949c3ee..9fa1a19aa 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -223,12 +223,15 @@ static float BarFontSize = 10.0; * Fill the background. */ - (void) drawRect: (NSRect) rect { + [[NSColor controlBackgroundColor] set]; + [NSBezierPath fillRect: rect]; + // Since the background is seamless, we don't need to take care for the proper offset. // Simply tile the background over the invalid rectangle. if (mBackground.size.width != 0) { NSPoint target = {rect.origin.x, 0}; while (target.x < rect.origin.x + rect.size.width) { - [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositingOperationCopy fraction: 1]; + [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositingOperationSourceOver fraction: 1]; target.x += mBackground.size.width; } } |