diff options
| author | Manolo Gouy <Manolo> | 2016-03-30 15:47:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-30 15:47:23 +0000 |
| commit | 2ac2b506a8ea6e0656a8bb6f81a8f0c1887256b7 (patch) | |
| tree | 56e1b03c337a5d5c6b920a35a4ed7bf77ea40e3a /src/drivers/PostScript/Fl_PostScript.cxx | |
| parent | fc7b00dad8f84bf0afb58323258100b3c82321a9 (diff) | |
Begin to rewrite Fl_PostScript.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/PostScript/Fl_PostScript.cxx')
| -rw-r--r-- | src/drivers/PostScript/Fl_PostScript.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx index 2de4ba543..003f39807 100644 --- a/src/drivers/PostScript/Fl_PostScript.cxx +++ b/src/drivers/PostScript/Fl_PostScript.cxx @@ -24,8 +24,8 @@ #include <stdio.h> #include <FL/Fl_PostScript.H> #include <FL/Fl_Native_File_Chooser.H> +#include <FL/Fl_System_Driver.H> #include <stdarg.h> -#include <locale.h> #if defined(USE_X11) #include <src/Fl_Font.H> #if USE_XFT @@ -151,23 +151,11 @@ Fl_PostScript_File_Device::~Fl_PostScript_File_Device() { */ int Fl_PostScript_Graphics_Driver::clocale_printf(const char *format, ...) { -#ifdef FL_PORTING -# pragma message "FL_PORTING: must define LC_NUMERIC" va_list args; va_start(args, format); - int retval = vfprintf(output, format, args); + int retval = Fl_System_Driver::driver()->clocale_printf(output, format, args); va_end(args); return retval; -#else - char *saved_locale = setlocale(LC_NUMERIC, NULL); - setlocale(LC_NUMERIC, "C"); - va_list args; - va_start(args, format); - int retval = vfprintf(output, format, args); - va_end(args); - setlocale(LC_NUMERIC, saved_locale); - return retval; -#endif } #ifndef FL_DOXYGEN |
