Commit graph

24 commits

Author SHA1 Message Date
Bill Kendrick
7938480174 Clean up GCC warnings (2019-08-29 edition)
Updated most parts of the code that were throwing warnings in GCC.
2019-08-30 00:01:00 -07:00
Bill Kendrick
5d9ceca076 "New colors last"; place colors at end of New
New option to place color palette items at the end of the "New"
dialog, rather than at the beginning.  Useful for when users
would want to pick from a set of Starters and/or Templates,
e.g., in a school or museum environment.

Available via command-line option "--newcolorslast", and
config file setting "newcolorslast=yes".  (And anti-option to
override config file settings, "--newcolorsfirst" and "...=no",
which represents the original behavior, which continues to be
the default).

Suggested by Bernard Verhaeghe.
2018-12-18 22:37:03 -08:00
William Kendrick
06b94d7f6d Getting "--saveover=XXX" options to work again (by coercing to their
synonyms, "--saveoverXXX=yes")
2014-08-21 08:34:38 +00:00
William Kendrick
e6365974f6 * --joystick-buttons-ignore option can be used to ignore joystick buttons
(rather than all non-command-assigned buttons being used asi
  left-mouse-click)
 * Updated docs re: joysticks a bit.
2014-03-31 05:54:32 +00:00
William Kendrick
0b27bec2e8 * Squelching a lot of debugging output, unless DEBUG is #define'd
* Added "--joystick-dev" option, for specifying which joystick device
   Tux Paint should listen to
   * "--joystick-dev list" is now used to list the available devices
 * Cleaned up some 'usage' output
2014-03-30 07:23:20 +00:00
William Kendrick
efd8d14585 A few tweaks (including wrapping stuff in #ifdef __APPLE__) to make sure
stuff still compiles under Linux, after applying Eric P.'s OSX changes.
2014-03-20 00:11:52 +00:00
William Kendrick
e990b48de7 Large bundle of OS X tweaks by Eric P. (basis of the 10.9-compatible
pre-release made in Dec. 2013):
 * Fix OS X 10.9 issue of current directory set by Finder
   to something else than folder where app bundle resides.
 * Some Mac OS X build / project changes & updates.
 * Adjustments to Mac OS X fontconfig config file, to avoid warnings
   and make things more robust.
 * Updates to some #include's to catch up with newer library revisions.
 * Tweaks to pixel read/write on Apple.
 * Introduction of 'intprt_t' casting to avoid warnings on x64.
 * Some additional debugging output.
 * Logging stderr & stdout to /tmp/tuxpaint.log
Untested (I don't have a Mac!)
2014-03-19 23:39:17 +00:00
Pere Pujal i Carabantes
15273cdd29 Adding an option to select the initial onscreen keyboard layout, adding an option to disable changes between layouts 2011-09-04 22:35:24 +00:00
Pere Pujal i Carabantes
a9d0372e14 Forgot to commit those 2011-07-29 21:44:30 +00:00
William Kendrick
fe56c473a5 Getting 'saveover...' options working as they used to, under the new gperf stuff.
Showing a warning when using save-related options when "nosave" is set. (SourceForge Bug #3327493)
2011-06-24 15:49:25 +00:00
Pere Pujal i Carabantes
7041da207d Joystick should now work. 2011-05-27 21:14:15 +00:00
William Kendrick
5b058ae71f Resurrecting informational options (--help, --usage, --version, --verbose-version) 2011-04-14 06:31:24 +00:00
William Kendrick
2715f918e9 Documenting mouse accessibility and onscreen keyboard options.
Normalizing those options ('-' instead of '_' in their names, like other opts.)
2011-04-14 06:26:45 +00:00
Pere Pujal i Carabantes
4a11638d09 Enabling accessibility and onscreen keyboard via config files and command line 2011-03-01 09:34:09 +00:00
Scott McCreary
ba4b907d49 Fixes for parse.gperf on gcc2 Haiku build (perhaps others?). 2010-06-04 01:42:54 +00:00
William Kendrick
7b31b7549d Patch collection from Volker Grabsch to help Tux Paint cross-compile for Windows:
* Solve the 'FIXME: "finddir" ...' (The trick is to use "=" instead of ":=". That way, $(beos_PREFIX) will only be evaluated when it is actually used.)
* include "shlwapi.h" instead of "Shlwapi.h" (Otherwise, compiling for Windows will fail on a case sensitive file system. (e.g. a Unix file system when cross compiling))
* use FILENAME_MAX instead of NAME_MAX (FILENAME_MAX is more portable than NAME_MAX. Also, recent MinGW versions don't support NAME_MAX anymore.)
* Exposing font_thread_aborted via extern [tweak to Volker's patch which removed a logic test, which is probably not what we want]
* include parse.h (and thus compiler.h) after <stdio.h> (This ensures that the perror() macro of compiler.h won't confuse the perror() function declaration of <stdio.h>.)
* fix another compiling error about undefined variables (The tuxpaint.c uses printcommand/altprintcommand/papersize even when they aren't defined, i.e. when libpaper is not used. This patch solves the issue by using "#ifdef PAPER_H")
* call show_available_papersizes() only when libpaper is used
* permit cross compiling by using Make variables instead of hard-coded tools

Documented scottmc's Haiku improvements.
2010-02-25 07:06:13 +00: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
Albert Cahalan
db4ad99ad8 lang/locale work much better now 2009-11-22 09:46:41 +00:00
Albert Cahalan
a9b8f6ea1c show_usage takes exit code, and knows what to do 2009-11-21 05:10:44 +00:00
Albert Cahalan
034d5c9fb9 empty string is no good 2009-11-21 04:58:00 +00:00
Albert Cahalan
e69985db3b report conflicting options 2009-11-21 03:39:50 +00:00
Albert Cahalan
9a00845f50 moving more code past start of font scanning 2009-11-16 08:54:48 +00:00
Albert Cahalan
667bc062f9 a parser for config files and the command line 2009-11-16 04:49:03 +00:00