File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/MacVim/PSMTabBarControl/source Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,14 @@ - (void)drawRect:(NSRect)rect
4040 }
4141
4242 NSImage *image = (_down) ? _PSMTabBarOverflowDownPopUpImage : _PSMTabBarOverflowPopUpImage;
43- NSSize imageSize = [image size ];
44- rect.origin .x = NSMidX (rect) - (imageSize.width * 0.5 );
45- rect.origin .y = NSMidY (rect) - (imageSize.height * 0.5 );
46- [image drawInRect: rect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0 respectFlipped: YES hints: nil ];
43+ NSSize imageSize = [image size ];
44+ NSRect bounds = [self bounds ];
45+ NSPoint drawPoint = NSMakePoint (NSMidX (bounds) - (imageSize.width * 0 .5f ),
46+ NSMidY (bounds) - (imageSize.height * 0 .5f ));
47+ [image drawAtPoint: drawPoint
48+ fromRect: NSZeroRect
49+ operation: NSCompositeSourceOver
50+ fraction: 1 .0f ];
4751}
4852
4953- (void )mouseDown : (NSEvent *)event
You can’t perform that action at this time.
0 commit comments