diff options
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabDragAssistant.m')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabDragAssistant.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabDragAssistant.m b/Frameworks/PSMTabBar/PSMTabDragAssistant.m index 21e014da..db993b81 100644 --- a/Frameworks/PSMTabBar/PSMTabDragAssistant.m +++ b/Frameworks/PSMTabBar/PSMTabDragAssistant.m @@ -668,6 +668,7 @@ static PSMTabDragAssistant *sharedDragAssistant = nil; //get a custom image representation of the view to drag from the delegate NSImage *tabImage = [_draggedTab image]; NSPoint drawPoint; + NSRect drawRect; _dragWindowOffset = NSZeroSize; viewImage = [[control delegate] tabView:[control tabView] imageForTabViewItem:[cell representedObject] offset:&_dragWindowOffset styleMask:outMask]; [viewImage lockFocus]; @@ -681,9 +682,10 @@ static PSMTabDragAssistant *sharedDragAssistant = nil; } else { drawPoint.x += [control frame].size.width - [tabImage size].width; } + drawRect = NSMakeRect(drawPoint.x, drawPoint.y, [tabImage size].width, [tabImage size].height); - [tabImage compositeToPoint:drawPoint operation:NSCompositeSourceOver]; - + [tabImage drawInRect:drawRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0f respectFlipped:YES hints:nil]; + [viewImage unlockFocus]; } else { //the delegate doesn't give a custom image, so use an image of the view |