We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d1176 commit e126fa9Copy full SHA for e126fa9
src/MacVim/PSMTabBarControl/source/PSMTabBarCell.m
@@ -338,7 +338,10 @@ - (NSImage*)dragImageForRect:(NSRect)cellFrame
338
if(([self state] == NSOnState) && ([[_controlView styleName] isEqualToString:@"Metal"]))
339
cellFrame.size.width += 1.0;
340
[_controlView lockFocus];
341
- NSBitmapImageRep *rep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect:cellFrame] autorelease];
+
342
+ NSBitmapImageRep *rep = [[self controlView] bitmapImageRepForCachingDisplayInRect:cellFrame];
343
+ [[self controlView] cacheDisplayInRect:cellFrame toBitmapImageRep:rep];
344
345
[_controlView unlockFocus];
346
NSImage *image = [[[NSImage alloc] initWithSize:[rep size]] autorelease];
347
[image addRepresentation:rep];
0 commit comments