Author: manolo
Date: 2011-07-11 02:45:21 -0700 (Mon, 11 Jul 2011)
New Revision: 8849
Log:
Mac OS: Added missing lock/unlock calls in Fl_Paged_Device::print_window().
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-07-10 16:56:39 UTC (rev 8848)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-07-11 09:45:21 UTC (rev 8849)
@@ -3417,6 +3417,7 @@
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 @@
}
}
this->print_widget(win, x_offset, y_offset + bt); // print the window inner
part
+ fl_unlock_function();
}
#include <dlfcn.h>
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit