diff options
| author | Manolo Gouy <Manolo> | 2011-04-08 16:14:05 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-04-08 16:14:05 +0000 |
| commit | 0937913a7c7e403e91498b59eabaa0fb895de34e (patch) | |
| tree | bd81551e509af8b8fa1181a2a97a2024fb1e4ca7 /src | |
| parent | 016219f4a2ac03033e8ae5d332aa5b915c01b524 (diff) | |
Added missing test of necessity of fl_open_display() call.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 07ecf5260..c88f73474 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1386,6 +1386,7 @@ void fl_close_display() { // Gets the border sizes and the titlebar size static void get_window_frame_sizes(int &bx, int &by, int &bt) { + if (NSApp == nil) fl_open_display(); NSRect inside = { {20,20}, {100,100} }; NSRect outside = [NSWindow frameRectForContentRect:inside styleMask:NSTitledWindowMask]; bx = int(outside.origin.x - inside.origin.x); |
