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
This commit is contained in:
parent
016219f4a2
commit
0937913a7c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user