summaryrefslogtreecommitdiff
path: root/src/Fl_Quartz_Printer.mm
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-19 12:40:24 +0000
committerManolo Gouy <Manolo>2016-02-19 12:40:24 +0000
commit1b5e231c902ab198c577989db44946797ebd4893 (patch)
tree211751e0eceda308df4e51d94511362f5e0b55f6 /src/Fl_Quartz_Printer.mm
parent6d766cc6814a9e7a04c0b147c7a3cbdc0817dfd4 (diff)
Rename Fl_Graphics_Driver::set_gc(void*) to gc(void*) and Fl_Graphics_Driver::get_gc() to gc().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Quartz_Printer.mm')
-rw-r--r--src/Fl_Quartz_Printer.mm16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Fl_Quartz_Printer.mm b/src/Fl_Quartz_Printer.mm
index 65ee90055..c12777131 100644
--- a/src/Fl_Quartz_Printer.mm
+++ b/src/Fl_Quartz_Printer.mm
@@ -188,7 +188,7 @@ void Fl_System_Printer::origin(int x, int y)
{
x_offset = x;
y_offset = y;
- CGContextRef gc = (CGContextRef)driver()->get_gc();
+ CGContextRef gc = (CGContextRef)driver()->gc();
CGContextRestoreGState(gc);
CGContextRestoreGState(gc);
CGContextSaveGState(gc);
@@ -203,7 +203,7 @@ void Fl_System_Printer::scale (float s_x, float s_y)
if (s_y == 0.) s_y = s_x;
scale_x = s_x;
scale_y = s_y;
- CGContextRef gc = (CGContextRef)driver()->get_gc();
+ CGContextRef gc = (CGContextRef)driver()->gc();
CGContextRestoreGState(gc);
CGContextRestoreGState(gc);
CGContextSaveGState(gc);
@@ -216,7 +216,7 @@ void Fl_System_Printer::scale (float s_x, float s_y)
void Fl_System_Printer::rotate (float rot_angle)
{
angle = - rot_angle * M_PI / 180.;
- CGContextRef gc = (CGContextRef)driver()->get_gc();
+ CGContextRef gc = (CGContextRef)driver()->gc();
CGContextRestoreGState(gc);
CGContextRestoreGState(gc);
CGContextSaveGState(gc);
@@ -228,7 +228,7 @@ void Fl_System_Printer::rotate (float rot_angle)
void Fl_System_Printer::translate(int x, int y)
{
- CGContextRef gc = (CGContextRef)driver()->get_gc();
+ CGContextRef gc = (CGContextRef)driver()->gc();
CGContextSaveGState(gc);
CGContextTranslateCTM(gc, x, y );
CGContextSaveGState(gc);
@@ -236,7 +236,7 @@ void Fl_System_Printer::translate(int x, int y)
void Fl_System_Printer::untranslate(void)
{
- CGContextRef gc = (CGContextRef)driver()->get_gc();
+ CGContextRef gc = (CGContextRef)driver()->gc();
CGContextRestoreGState(gc);
CGContextRestoreGState(gc);
}
@@ -258,7 +258,7 @@ int Fl_System_Printer::start_page (void)
status = PMSessionGetGraphicsContext(printSession, NULL, (void **)&gc);
#endif
}
- driver()->set_gc(gc);
+ driver()->gc(gc);
PMRect pmRect;
float win_scale_x, win_scale_y;
@@ -293,7 +293,7 @@ int Fl_System_Printer::start_page (void)
int Fl_System_Printer::end_page (void)
{
- CGContextRef gc = (CGContextRef)driver()->get_gc();
+ CGContextRef gc = (CGContextRef)driver()->gc();
CGContextFlush(gc);
CGContextRestoreGState(gc);
CGContextRestoreGState(gc);
@@ -319,7 +319,7 @@ void Fl_System_Printer::end_job (void)
}
#endif
Fl_Display_Device::display_device()->set_current();
- driver()->set_gc(0);
+ driver()->gc(0);
Fl_Window *w = Fl::first_window();
if (w) w->show();
}