diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-07 21:56:12 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-07 21:56:12 +0000 |
| commit | b73bf4a73eeda279042883139106eacbe4b3d791 (patch) | |
| tree | ae472796addb9e49c44cf80411d532c98b49b08f | |
| parent | c26880e2d2cb9ca5c5da060eedfee380692b74f0 (diff) | |
Fixes for MSWindow
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | FL/win32.H | 2 | ||||
| -rw-r--r-- | src/Fl_win32.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/FL/win32.H b/FL/win32.H index 4043e1ee4..bb8c4050a 100644 --- a/FL/win32.H +++ b/FL/win32.H @@ -83,7 +83,7 @@ public: static int fake_X_wm(const Fl_Window* w,int &X, int &Y, int &bt,int &bx,int &by); void make_fullscreen(int X, int Y, int W, int H); - void setwindow(Fl_Window* wi) {w=wi; wi->i=(Fl_Window_Driver*)this;} + void setwindow(Fl_Window* wi) {w=wi; wi->i=this;} void flush() {w->flush();} void set_minmax(LPMINMAXINFO minmax); void mapraise(); diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 236693db7..3de627208 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1863,7 +1863,7 @@ Fl_X* Fl_X::make(Fl_Window* w) { } else if (Fl::grab()) parent = fl_xid(Fl::grab()); } - Fl_Window_Driver *x = Fl_Window_Driver::newWindowDriver(w); + Fl_X *x = new Fl_X; x->other_xid = 0; x->setwindow(w); x->region = 0; |
