mirror of
https://github.com/david-schmidt/gsport.git
synced 2025-08-09 18:25:25 +00:00
Allow unix to write a .ps to the current directory (not to the root of the filesystem)!
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
#include <math.h>
|
||||
#include "support.h"
|
||||
//#include "png.h"
|
||||
//#pragma comment( lib, <EFBFBD>libpng.lib<EFBFBD> )
|
||||
//#pragma comment (lib, <EFBFBD>zdll.lib<EFBFBD> )
|
||||
//#pragma comment( lib, "libpng.lib" )
|
||||
//#pragma comment (lib, "zdll.lib" )
|
||||
|
||||
static CPrinter* defaultPrinter = NULL;
|
||||
|
||||
@@ -1583,7 +1583,7 @@ static void findNextName(char* front, char* ext, char* fname)
|
||||
#ifdef WIN32
|
||||
const char* const pathstring = ".\\%s%d%s";
|
||||
#else
|
||||
const char* const pathstring = "/%s%d%s";
|
||||
const char* const pathstring = "./%s%d%s";
|
||||
#endif
|
||||
sprintf(fname+strlen(fname), pathstring, front,i++,ext);
|
||||
test = fopen(fname, "rb");
|
||||
|
Reference in New Issue
Block a user