summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-11-29 14:12:57 +0000
committerManolo Gouy <Manolo>2010-11-29 14:12:57 +0000
commit25f3f44253e1cd38223d1729c97feb0f6e9c03f7 (patch)
treee169f8a5d6918c1e558aa790be721a6d7cf996ee
parent0294bd1fa52e21af02185139c5e621868a5f037e (diff)
Mac OS X: display dragged text as cursor for Fl_Text_Display as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index bb628a3b6..a214dd910 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -70,6 +70,7 @@ extern "C" {
#include <FL/Fl_Sys_Menu_Bar.H>
#include <FL/Fl_Printer.H>
#include <FL/Fl_Input_.H>
+#include <FL/Fl_Text_Display.H>
#include <stdio.h>
#include <stdlib.h>
#include "flstring.h"
@@ -3173,7 +3174,7 @@ int MACpreparedrag(void)
int width, height;
NSImage *image;
- if ( dynamic_cast<Fl_Input_*>(w) != NULL) {
+ if ( dynamic_cast<Fl_Input_*>(w) != NULL || dynamic_cast<Fl_Text_Display*>(w) != NULL) {
fl_selection_buffer[0][ fl_selection_length[0] ] = 0;
image = imageFromText(fl_selection_buffer[0], &width, &height);
} else {