mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
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
This commit is contained in:
+2
-1
@@ -70,6 +70,7 @@ extern "C" {
|
|||||||
#include <FL/Fl_Sys_Menu_Bar.H>
|
#include <FL/Fl_Sys_Menu_Bar.H>
|
||||||
#include <FL/Fl_Printer.H>
|
#include <FL/Fl_Printer.H>
|
||||||
#include <FL/Fl_Input_.H>
|
#include <FL/Fl_Input_.H>
|
||||||
|
#include <FL/Fl_Text_Display.H>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "flstring.h"
|
#include "flstring.h"
|
||||||
@@ -3173,7 +3174,7 @@ int MACpreparedrag(void)
|
|||||||
|
|
||||||
int width, height;
|
int width, height;
|
||||||
NSImage *image;
|
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;
|
fl_selection_buffer[0][ fl_selection_length[0] ] = 0;
|
||||||
image = imageFromText(fl_selection_buffer[0], &width, &height);
|
image = imageFromText(fl_selection_buffer[0], &width, &height);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user