From adebe1490b92a91f247eacf22789ec8df5bf8343 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 16 Sep 2013 12:27:54 +1000 Subject: Removed back up code that produced a simple drag image. --- cocoa/ScintillaCocoa.mm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 8132bd8e0..52c580eea 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1238,8 +1238,6 @@ void ScintillaCocoa::StartDrag() NSView* content = ContentView(); -#if 1 - // To get a bitmap of the text we're dragging, we just use Paint on a pixmap surface. SurfaceImpl *sw = new SurfaceImpl(); SurfaceImpl *pixmap = NULL; @@ -1290,15 +1288,6 @@ void ScintillaCocoa::StartDrag() pixmap->Release(); delete pixmap; } -#else - - // Poor man's drag image: take a snapshot of the content view. - [content lockFocus]; - NSBitmapImageRep* bitmap = [[[NSBitmapImageRep alloc] initWithFocusedViewRect: selectionRectangle] autorelease]; - [bitmap setColorSpaceName: NSDeviceRGBColorSpace]; - [content unlockFocus]; - -#endif NSImage* image = [[[NSImage alloc] initWithSize: selectionRectangle.size] autorelease]; [image addRepresentation: bitmap]; -- cgit v1.2.3