From de7a79afd6231bb1f39c3b3c3a34364da560dfe2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 23 Feb 2014 15:58:12 +0000 Subject: print_window():: make the test specific to a printer device. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 889ae54d4..de1552168 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3458,7 +3458,7 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) delete[] bitmap; if (title) { // print the window title const int skip = 68; // approx width of the zone of the 3 window control buttons - if (fl_mac_os_version >= 100400 && dynamic_cast(this->driver())) { // use Cocoa string drawing with exact title bar font + if (fl_mac_os_version >= 100400 && dynamic_cast(this)) { // use Cocoa string drawing with exact title bar font NSGraphicsContext *current = [NSGraphicsContext currentContext]; [NSGraphicsContext setCurrentContext:[NSGraphicsContext graphicsContextWithGraphicsPort:fl_gc flipped:YES]];//10.4 NSDictionary *attr = [NSDictionary dictionaryWithObject:[NSFont titleBarFontOfSize:0] -- cgit v1.2.3