summaryrefslogtreecommitdiff
path: root/src/Fl_Quartz_Printer.mm
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-01 10:13:54 +0000
committerManolo Gouy <Manolo>2011-02-01 10:13:54 +0000
commit45e539fff80a5b0040d517f01d82b7aa6cdb7d31 (patch)
tree4d02950654586736bf5d0c38c9272aa2d4261a89 /src/Fl_Quartz_Printer.mm
parent2192b8aed24833a5282c53be6f1df2b5861d0b31 (diff)
fl_draw_image() on Mac OS and to a printer requires the image data to be kept until the
page is finished. Thus, we now duplicate this data when the output is a printer, so the caller of the function does not have to take into account this Mac OS specificity. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Quartz_Printer.mm')
-rw-r--r--src/Fl_Quartz_Printer.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Fl_Quartz_Printer.mm b/src/Fl_Quartz_Printer.mm
index 200b41dd6..6f4c07a1b 100644
--- a/src/Fl_Quartz_Printer.mm
+++ b/src/Fl_Quartz_Printer.mm
@@ -261,7 +261,6 @@ int Fl_System_Printer::start_page (void)
angle = 0;
scale_x = scale_y = 1;
win_scale_x = win_scale_y = 1;
- image_list_ = NULL;
if(orientation == kPMPortrait)
CGContextTranslateCTM(fl_gc, margins.left, margins.bottom + h);
else
@@ -284,7 +283,6 @@ int Fl_System_Printer::end_page (void)
CGContextRestoreGState(fl_gc);
CGContextRestoreGState(fl_gc);
OSStatus status = PMSessionEndPageNoDialog(printSession);
- delete_image_list();
gc = NULL;
return status != noErr;
}