From 20ab9c3c33612a6bdcdd6c7796022bfeda36f0ae Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 11 Jul 2011 09:45:21 +0000 Subject: [PATCH] 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 --- src/Fl_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) 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