diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-16 12:27:54 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-16 12:27:54 +1000 |
commit | 9905e613709f71a852d30bd5c45c647524c04180 (patch) | |
tree | ab4438537ecd2bcab80ce31011eb13bf41b5a86a | |
parent | 2292ee7c6a128142f817d23fd99f3f0425328c9c (diff) | |
download | scintilla-mirror-9905e613709f71a852d30bd5c45c647524c04180.tar.gz |
Removed back up code that produced a simple drag image.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 11 |
1 files changed, 0 insertions, 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]; |