diff options
| author | Manolo Gouy <Manolo> | 2011-07-11 09:45:21 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-07-11 09:45:21 +0000 |
| commit | 20ab9c3c33612a6bdcdd6c7796022bfeda36f0ae (patch) | |
| tree | 72d2c40004d397aee560782d512d3aa79a0bf67c | |
| parent | 5faaebe3737eed1578c4307ea4eec03d8bac5112 (diff) | |
Mac OS: Added missing lock/unlock calls in Fl_Paged_Device::print_window().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index a561649e5..1b0130fac 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3417,6 +3417,7 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) 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 @@ -3443,6 +3444,7 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) } } this->print_widget(win, x_offset, y_offset + bt); // print the window inner part + fl_unlock_function(); } #include <dlfcn.h> |
