PostScript credit, and hook for landscape mode
This commit is contained in:
parent
84b6fb4ebc
commit
2b4c654840
1 changed files with 15 additions and 0 deletions
|
|
@ -12158,6 +12158,20 @@ static int do_png_save(FILE * fi, const char * const fname, SDL_Surface * surf)
|
|||
///////////////////////////////////// PostScript printing ///////////
|
||||
#ifdef PRINTMETHOD_PS
|
||||
|
||||
// [Doug Zongker quoting Albert Cahalan]
|
||||
//
|
||||
// > First of all, would you mind if Tux Paint used some
|
||||
// > version of the imgtops code?
|
||||
//
|
||||
// Yes, please do whatever you'd like with it.
|
||||
//
|
||||
// > I'd like
|
||||
// > some clarification of what you interpret the license to
|
||||
// > mean when it says "substantial portions of the Software".
|
||||
//
|
||||
// My intent was to let anyone do anything they wanted with the source as
|
||||
// long as some attribution was given.
|
||||
|
||||
static const char ps_footer[] =
|
||||
"%%%%EndData\n"
|
||||
"grestore\n"
|
||||
|
|
@ -12183,6 +12197,7 @@ static int do_ps_save(FILE * fi, const char *restrict const fname, SDL_Surface
|
|||
fprintf(fi, "%%%%DocumentData: Binary\n");
|
||||
fprintf(fi, "%%%%EndComments\n");
|
||||
fprintf(fi, "gsave\n");
|
||||
// fprintf(fi, "90 rotate 0 %f translate\n", ???); // landscape mode
|
||||
fprintf(fi, "72.000000 214.560000 translate 468.000000 362.880000 scale\n");
|
||||
fprintf(fi, "/DeviceRGB setcolorspace\n");
|
||||
fprintf(fi, "<<\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue