Commit graph

12 commits

Author SHA1 Message Date
Bill Kendrick
4e3a9fbc8c Re-ran indent on .c files
Also, added a few places where indent is disabled
(via `/* *INDENT-OFF* */`).

See https://sourceforge.net/p/tuxpaint/mailman/message/36077409/
from Oct. 2017.
2019-04-13 12:00:44 -07:00
Mark K. Kim
f0f88722b4 Fix macOS printing error message issue.
Previously Tux Paint was raising an error informing the user it could not
print even when it did print successfully.  This appears to be due to our
lpr printing routine's assumption that errno is reset on success whereas
the C library in macOS does not appear to do so.  To address this issue,
errno is reset before calling pclose() (on macOS and macOS only - just in
case this code has an unintended side-effect on other platforms).  This
code change assumes we're only interested in errno set by pclose(), and
that our lpr printing routine is not interested in errno raised prior to
pclose().
2018-08-09 07:27:00 -04:00
Bill Kendrick
bc78db547f indent postscript_print.c postscript_print.h 2017-10-15 11:04:11 -07:00
Albert Cahalan
e3a971194c options working fairly well 2009-11-23 07:45:24 +00:00
Albert Cahalan
3d15a468cd lots of functions made static (some had to be moved) 2009-11-22 23:17:35 +00:00
William Kendrick
088ff3f60f Add margin to updated postscript_print code.
Add some missing credits for PS print support.
2009-01-29 20:51:37 +00:00
William Kendrick
c349189b2c On systems that use postscript_print (Linux and other Unix-likes),
errors when attempting to issue a print command (e.g., trying to use
"lpr", but that command is not available) should appear in Tux Paint.
(SourceForge bug #2205528)
2008-12-07 09:03:40 +00:00
William Kendrick
9c7f6fca41 Fixed PS printing scale issue (thanks, Pere). 2008-08-28 22:06:43 +00:00
William Kendrick
c4b3e49215 Added ripples magic.
Added (not finished) (new) sparkles magic.
Fixed printf localization bug in postscript printing.
Got Text tool working when Pango is used.
2007-07-18 20:13:08 +00:00
William Kendrick
dccaf7eff2 Attempting to work around fprintf(... "%f" ...) localization in PS printing. 2007-07-18 00:56:50 +00:00
William Kendrick
b16832d76a PostScript printing code rewritten, based on NetPBM's 'pnmtops' tool by Jef Poskanzer.
PostScript printing now uses libprint to determine papersize, and scale and
  position image accordingly.  Thanks to Henry House.
"--papersize" option added to allow PostScript printing code to use a
  different size than libpaper reports as the user's or system's default.
2007-06-25 18:00:49 +00:00
William Kendrick
4b642d53d5 Split PostScript printing code (for Linux/Unix/etc.) into its own source file. 2007-06-24 23:06:24 +00:00