Skip to content

Commit

Permalink
Mac OS: Added missing lock/unlock calls in Fl_Paged_Device::print_win…
Browse files Browse the repository at this point in the history
…dow().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Jul 11, 2011
1 parent 5faaebe commit 20ab9c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Fl_cocoa.mm
Expand Up @@ -3417,6 +3417,7 @@ Window fl_xid(const Fl_Window* w)
this->print_widget(win, x_offset, y_offset);
return;
}
fl_lock_function(); // necessary because of call to Fl::check() below.
int bx, by, bt;
get_window_frame_sizes(bx, by, bt);
Fl_Display_Device::display_device()->set_current(); // send win to front and make it current
Expand All @@ -3443,6 +3444,7 @@ Window fl_xid(const Fl_Window* w)
}
}
this->print_widget(win, x_offset, y_offset + bt); // print the window inner part
fl_unlock_function();
}

#include <dlfcn.h>
Expand Down

0 comments on commit 20ab9c3

Please sign in to comment.