From f33b45f1d30653fb5da4817089e38ff0a2413cfb Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 18 Feb 2016 16:21:51 +0000 Subject: Remove all uses of the fl_gc global variable. Towards a clean driver model. fl_gc remains usable by the application as a hook into the system. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_PostScript.H | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'FL/Fl_PostScript.H') diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H index 64e49f45d..69114ce2c 100644 --- a/FL/Fl_PostScript.H +++ b/FL/Fl_PostScript.H @@ -3,7 +3,7 @@ // // Support for graphics output to PostScript file for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2011 by Bill Spitzak and others. +// Copyright 2010-2016 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -233,15 +233,6 @@ class Clip { two variants of which are usable and allow to specify what page format and layout are desired. */ class FL_EXPORT Fl_PostScript_File_Device : public Fl_Paged_Device { -#ifdef __APPLE__ // PORTME: Fl_Surface_Driver ? - platform specifics for PostScript - CGContextRef gc; -#elif defined(WIN32) - // not needed -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: define storage for your graphics context in Fl_PostScript_File_Device if needed" -#else // X11 - // not needed -#endif protected: Fl_PostScript_Graphics_Driver *driver(); public: @@ -264,17 +255,7 @@ public: void translate(int x, int y); void untranslate(void); int end_page (void); - void end_job(void); -#ifdef __APPLE__ // PORTME: Fl_Surface_Driver ? - platform specifics for PostScript - void set_current() { fl_gc = gc; Fl_Paged_Device::set_current(); } -#elif defined(WIN32) - // not needed -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: set access to your graphics context in Fl_PostScript_File_Device if needed" -#else // X11 - // not needed -#endif - + void end_job(void); static const char *file_chooser_title; }; -- cgit v1.2.3