Skip to content

Commit

Permalink
print_window():: make the test specific to a printer device.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Feb 23, 2014
1 parent fe4d1af commit de7a79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_cocoa.mm
Expand Up @@ -3458,7 +3458,7 @@ Window fl_xid(const Fl_Window* w)
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<Fl_Quartz_Graphics_Driver*>(this->driver())) { // use Cocoa string drawing with exact title bar font
if (fl_mac_os_version >= 100400 && dynamic_cast<Fl_Printer*>(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]
Expand Down

0 comments on commit de7a79a

Please sign in to comment.