diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-02-19 22:21:02 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-02-19 22:21:02 +0000 |
| commit | 052401a34e8347c87a418270986432032ac693e2 (patch) | |
| tree | 311f997a157e25f132a51fed20438f6f3a92c284 /src/Fl_cocoa.mm | |
| parent | a072a412a1370d3c5570150f0c4a381909b623ec (diff) | |
Instantiate the right Fl_Window_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 19542d9b3..02d67a11b 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -36,7 +36,7 @@ extern "C" { #include <FL/Fl.H> -#include <FL/x.H> +#include <FL/Fl_Window_Driver.H> #include <FL/Fl_Window.H> #include <FL/Fl_Tooltip.H> #include <FL/Fl_Printer.H> @@ -2946,7 +2946,7 @@ void Fl_X::make(Fl_Window* w) yp -= by+bt; } - Fl_X* x = new Fl_X; + Fl_Window_Driver *x = Fl_Window_Driver::newWindowDriver(w); x->other_xid = 0; // room for doublebuffering image map. On OS X this is only used by overlay windows x->region = 0; x->subRect(0); |
