summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-09-26 16:57:37 +0000
committerManolo Gouy <Manolo>2016-09-26 16:57:37 +0000
commit04c20514f62f09ef92fcfbe8cdb0e3917ba1c9a7 (patch)
tree9a1e06021006d6dac45e16b02dbb29a303a04cf7 /src/drivers/Cocoa
parent606cdf1c6091920d006f4258af5f1495bc1af411 (diff)
Replace a few global variables by members of the Fl_Quartz_Graphics_Driver class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Cocoa')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm
index e5fb88ff1..8792214ad 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm
+++ b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm
@@ -44,8 +44,6 @@ typedef OSStatus
CFStringRef graphicsContextType,
void ** graphicsContext);
-extern void fl_quartz_restore_line_style_(CGContextRef gc);
-
/** Support for printing on the Apple OS X platform */
class Fl_Cocoa_Printer_Driver : public Fl_Paged_Device {
@@ -324,7 +322,7 @@ int Fl_Cocoa_Printer_Driver::start_page (void)
else
CGContextTranslateCTM(gc, margins.top, margins.right + h);
CGContextScaleCTM(gc, win_scale_x, - win_scale_y);
- fl_quartz_restore_line_style_(gc);
+ ((Fl_Quartz_Graphics_Driver*)driver())->quartz_restore_line_style();
CGContextSetShouldAntialias(gc, false);
CGContextSaveGState(gc);
CGContextSaveGState(gc);