Commit graph

2026 commits

Author SHA1 Message Date
Mark Kim
8d9e187cc9 More debugging features, performance and macOS update.
Added function name to the output of verbose logging.  Verbose logging is
the feature introduced in the previous git commit where a call to printf()
automatically adds the source filename and line from where the printf() is
called, and the runtime timestamp at which the call was made.  Now this
feature adds the functio name from which the printf() is called.  This
feature is enabled if and only if both DEBUG and VERBOSE are defined in
debug.h and the source is compiled with GCC.

Added a new macro DEBUG_PRINTF() that expands to printf() if and only if
DEBUG is defined in debug.h.  This feature works with verbose logging if
VERBOSE is also defined and the source is compiled with GCC.

Reduced the launch time.  A user reported an issue with Tux Paint taking 7
minutes to launch; an investigation showed that launching Tux Paint with
all stamps and the screen width set wide (~1500 pixels) can cause the
slowdown during the progress bar drawing sequence because progress bar
takes a long time to draw on screens with a wide screen, and it is called
~10 thousand times during the stamp loading process.  The issue has been
addressed by calling the progress bar less frequently.

Updated the macOS build version and date, under which these features were
tested.
2018-09-24 23:00:04 -04:00
Mark Kim
c2be35f1bf Verbose logging.
Verbose logging adds metadata about when it is called and from where to every
printf call. Enable it by uncommenting both DEBUG and VERBOSE defined constants
in debug.h.
2018-09-23 21:35:31 -04:00
Bill Kendrick
8b84d51d00 Update & simplify credits
Update (c) date to 2018 on title screen.
Simplify and update (c) info in most documentation.
2018-08-28 09:36:38 -07:00
Bill Kendrick
a26ac167d0 Bump version # & date in man page 2018-08-19 21:38:07 -07:00
Bill Kendrick
2837e491bb Scottish Gaelic translation update
Scottish Gaelic translation update from Fòram na Gàidhlig.
2018-08-18 00:15:13 -07:00
Bill Kendrick
6e55fd9cb8 Basque translation update
Updates to eu.po by Alexander Gabillondo.
2018-08-09 21:03:21 -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
Mark K. Kim
1db3d431f5 Add debugging output for playing sounds. 2018-06-26 22:59:24 -04:00
Mark K. Kim
19ae36662b Add more debugging messages.
Also update macOS build date in the Info.plist file.
2018-06-26 02:13:41 -04:00
Mark K. Kim
93c1ad5dc3 Fix crash when there are 0 font families.
Running Tux Paint under macOS in Korean mode (and some other languages) causes
it to crash, unless "load system fonts" option is also enabled. Some
investigation showed the issue occurs when num_font_families is 0 in fonts.c.
This change removes the assumption from the code that assumes num_font_families
has at least one record.
2018-06-26 01:28:43 -04:00
Bill Kendrick
9144ebd705 More function documentation 2018-05-17 00:30:48 -07:00
Bill Kendrick
e56067d202 Beginning to doc every func in tuxpaint.c
Beginning to document functions in src/tuxpaint.c, Docbook style
(description, @param's, @return).  Also removed a few dead bits
of code.

Eventually, hoping to break this beastly file into pieces.
(Maybe for Tux Paint 0.9.24?)
2018-05-14 23:56:44 -07:00
Pere Pujal i Carabantes
36da7970f7 Revert "Better scale quality for small screens."
This reverts commit f1bd7b464a.
Should have gone to the sdl2.0 branch, sorry :(
2018-03-10 12:09:34 +01:00
Pere Pujal i Carabantes
f1bd7b464a Better scale quality for small screens. 2018-03-09 08:23:21 +01:00
rbuj
275c52c538 Update Catalan translation 2018-02-25 13:00:51 +01:00
Bill Kendrick
4307dd5a9a More Basque updates 2018-02-24 11:41:10 -08:00
Bill Kendrick
c45be1bac3 Basque translation update 2018-02-24 11:33:39 -08:00
joe
d6c3edac19 Gujarati header 2018-01-01 12:35:10 +01:00
Kartik Mistry
f0a5164bd5 Updated Gujarati translation 2018-01-01 10:38:16 +05:30
Bill Kendrick
95a6cb5743 British English translation update 2017-12-30 20:51:59 -08:00
Bill Kendrick
464566d232 el.po tweaks by Chris Leonard 2017-12-30 11:45:29 -08:00
Bill Kendrick
28d075fd76 id.po tweaks by Chris Leonard 2017-12-30 11:43:25 -08:00
Bill Kendrick
6aad3a49f0 bn.po tweaks by Chris Leonard 2017-12-30 11:42:48 -08:00
Bill Kendrick
e8e92ef06a pl.po tweaks by Chris Leonard 2017-12-30 11:40:11 -08:00
Bill Kendrick
7f4a8c0c39 af.po tweaks by Chris Leonard 2017-12-30 11:37:48 -08:00
Bill Kendrick
324c2c5ce4 son.po tweaks by Chris Leonard 2017-12-30 11:35:57 -08:00
Bill Kendrick
b0c1546b1b A patch to enable compiling on latest mingw env.
Contributed by TOYAMA Shin-ichi
2017-12-30 10:53:08 -08:00
Kevin Scannell
fce3d93399 Irish translation back to 100% 2017-12-30 07:20:24 -06:00
joe
dbc3204ae2 Aragones 296 translated 0 untranslated 2017-12-29 13:11:44 +01:00
joe
75b31d12c0 Chinese 268 translated 28 untranslated 2017-12-27 23:55:47 +01:00
joe
7a32179098 Aragnoes 296 translated 1 untranslated 2017-12-27 23:47:51 +01:00
joe
36aed0d7a8 Croatian 296 translated 0 untranslated 2017-12-27 23:29:32 +01:00
joe
28898331f0 Slovenian 296 translated 0 untranslated 2017-12-27 23:21:24 +01:00
joe
6736bfc7ce Italian 296 translated strings 2017-12-26 00:18:56 +01:00
joe
eeec017ebf Japanese 296 translated strings 2017-12-25 23:09:32 +01:00
joe
1b346bfd83 Russian 296 translated strings 2017-12-25 22:58:35 +01:00
joe
4999e0855e German 296 translated strings 2017-12-25 22:50:20 +01:00
joe
471b8036c0 Kabyle 296 translated strings 2017-12-25 15:00:27 +01:00
Mark K. Kim
75f0580e95 Merge branch 'master' of ssh://git.code.sf.net:/p/tuxpaint/tuxpaint 2017-12-21 23:49:20 -05:00
Mark K. Kim
912cd2e625 Fix text not displaying on systems without Fontconfig installed. 2017-12-20 23:19:19 -05:00
joe
a803e1d411 Georgian update 296 translated strings 2017-12-20 23:22:16 +01:00
joe
8d86c090d5 Portuguese update 296 translated strings 2017-12-19 23:24:47 +01:00
joe
c38896be5d Spanish updates after poabc 2017-12-19 21:59:31 +01:00
joe
21d55943b9 Greece 296 translated strings 2017-12-19 21:55:12 +01:00
joe
7018ff08d4 Songhay 296 translated strings 2017-12-19 21:41:46 +01:00
joe
bed13e6a05 Icelandic 296 translated strings 2017-12-19 21:33:40 +01:00
joe
5e8d625d94 Swedish 296 translated strings 2017-12-18 20:25:43 +01:00
joe
328158b33a Spanish 296 translated strings 2017-12-18 19:37:04 +01:00
joe
9b0c9616d7 Scottish Gaelic 296 translated strings 2017-12-18 19:25:33 +01:00
joe
bc583d706f French update 296 translated strings 2017-12-17 20:24:30 +01:00