aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-09-16 12:27:54 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-09-16 12:27:54 +1000
commitadebe1490b92a91f247eacf22789ec8df5bf8343 (patch)
treee018c4d906dbb32b8fd9cd53368d437d76dc7b83
parent2e73798f76a1e511b834dce81f2349212ac8d581 (diff)
downloadscintilla-mirror-adebe1490b92a91f247eacf22789ec8df5bf8343.tar.gz
Removed back up code that produced a simple drag image.
-rw-r--r--cocoa/ScintillaCocoa.mm11
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];