diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-12 22:24:20 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-12 22:24:20 +0000 |
| commit | e6631a0f7fdc8d3383927bac49f521791cddcc9c (patch) | |
| tree | b753578787e06c5aa2acea4c215063cb34167093 /src/Fl_cocoa.mm | |
| parent | 4643f3e98c8bfabc262770bca5afc31a8b38c7f5 (diff) | |
Moved the Fl_Window::decorated_*() functions teh Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 55b7f7d09..94ade1d9e 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4289,20 +4289,22 @@ Window fl_xid(const Fl_Window* w) return temp ? temp->xid : 0; } -int Fl_Window::decorated_w() +int Fl_Cocoa_Window_Driver::decorated_w() { - if (!shown() || parent() || !border() || !visible()) return w(); + if (!pWindow->shown() || pWindow->parent() || !pWindow->border() || !pWindow->visible()) + return pWindow->w(); int bx, by, bt; get_window_frame_sizes(bx, by, bt); - return w() + 2 * bx; + return pWindow->w() + 2 * bx; } -int Fl_Window::decorated_h() +int Fl_Cocoa_Window_Driver::decorated_h() { - if (!shown() || parent() || !border() || !visible()) return h(); + if (!pWindow->shown() || pWindow->parent() || !pWindow->border() || !pWindow->visible()) + return pWindow->h(); int bx, by, bt; get_window_frame_sizes(bx, by, bt); - return h() + bt + by; + return pWindow->h() + bt + by; } // clip the graphics context to rounded corners |
