Commit graph

1190 commits

Author SHA1 Message Date
Pere Pujal i Carabantes
716e4ec55d Merge branch 'master' into sdl2.0 2019-01-25 19:14:04 +01:00
Bill Kendrick
f3965941aa Mend alloc bug introduced testing 'New colors last'
Didn't mean to stop alloc'ing space for the colors!
2018-12-18 22:45:52 -08: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
Bill Kendrick
268e213e6d Bump to 0.9.24; improve usage output
Bumping to 0.9.24; going to add a new feature momentarily.

Improved usage output (e.g., that of "tuxpaint --help"); broke
the options into groups that match the tabs in Tux Paint Config.,
added some missing options.
2018-12-18 21:56:05 -08:00
Mark Kim
be99eb3844 Re-add print dialog access to macOS.
Ability to bring up the print dialog from the macOS build was removed in
Tux Paint 0.9.23 to support the new build mechanism.  It has been re-added.
To access it, option-click the print icon, or configure Tux Paint to always
bring up the dialog upon print.
2018-09-28 23:24:56 -04:00
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
Pere Pujal i Carabantes
1a5308226c Merge branch 'master' into sdl2.0 2018-08-30 01:37:00 +02: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
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
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
bb6b6aea93 Better scale quality for small screens. 2018-03-10 15:35:36 +01:00
Pere Pujal i Carabantes
e0324d5255 Config files missmatch in Android 2018-03-09 00:13:26 +01:00
Pere Pujal i Carabantes
df13e8d1bc Data like brushes, starters,... now is loaded from assets in the android port, failed to merge some stuff... 2018-01-19 08:53:49 +01:00
Pere Pujal i Carabantes
4366697e8d Update to master up to 2018/01/16. 2018-01-18 00:04:26 +01:00
Mark K. Kim
912cd2e625 Fix text not displaying on systems without Fontconfig installed. 2017-12-20 23:19:19 -05:00
Pere Pujal i Carabantes
b2c176730a Merging from the master branch. 2017-12-19 02:47:08 +01:00
Pere Pujal i Carabantes
c0b14acd31 Adapt latest changes to SDL2. 2017-12-19 02:44:02 +01:00
Pere Pujal i Carabantes
c6b6958cf3 More compiler warnings 2017-12-19 02:41:56 +01:00
Pere Pujal i Carabantes
de308f70a8 Compiler warnings 2017-12-19 02:41:42 +01:00
Pere Pujal i Carabantes
1e0ea6d4b3 Indentation. 2017-12-19 02:17:27 +01:00
Pere Pujal i Carabantes
4b0a029513 SDL 2.0.5 requires a full cleanup of the renderer. 2017-12-06 06:52:17 +01:00
Pere Pujal i Carabantes
f42ca6600a How I did forgot this else? 2017-12-06 06:52:17 +01:00
Pere Pujal i Carabantes
3d3102af2a Autosave for Android. 2017-12-06 06:52:17 +01:00
Pere Pujal i Carabantes
ede838caf9 Syncing with the android version... 2017-12-06 06:39:41 +01:00
Pere Pujal i Carabantes
0d68a0f33f Color selector to SDL2 2017-12-06 06:39:40 +01:00
Pere Pujal i Carabantes
d38b4abd68 Integrating android support. 2017-12-06 06:39:40 +01:00
Pere Pujal i Carabantes
356b503bdd Recovering IM in a more generic way. 2017-12-06 06:39:40 +01:00
Pere Pujal i Carabantes
9adbd1e261 Recovering fonts after recovering progressbar. 2017-12-06 06:39:39 +01:00
Pere Pujal i Carabantes
58d202d275 Progressbar seems to work again 2017-12-06 06:39:39 +01:00
Pere Pujal i Carabantes
dd4ec4bd2c Mirror and Flip stamps were not working. 2017-12-06 06:39:39 +01:00
Pere Pujal i Carabantes
52dd490579 Adding support for sdl2pango 2017-12-06 06:39:39 +01:00
Pere Pujal i Carabantes
9f345958ca keymouse working right again 2017-12-06 06:39:39 +01:00
Pere Pujal i Carabantes
4d132111b2 buttonscroll working again. 2017-12-06 06:39:38 +01:00
Pere Pujal i Carabantes
ff4d9d8566 mouse wheel seems to scroll. 2017-12-06 06:39:38 +01:00
Pere Pujal i Carabantes
d7b7274a96 Start with scroll events. 2017-12-06 06:39:38 +01:00
Pere Pujal i Carabantes
22866bd7db Some cleanup 2017-12-06 06:39:38 +01:00
Pere Pujal i Carabantes
690fb2ec4e Fullscreen=yes working now, speed rendering improved. 2017-12-06 06:39:38 +01:00
Pere Pujal i Carabantes
fc904c7906 Still fullscreen=yes not working. 2017-12-06 06:39:38 +01:00
Pere Pujal i Carabantes
a24c060e1f Saving and loading from starters seems to begin working... 2017-12-06 06:39:37 +01:00
Pere Pujal i Carabantes
b08ddf00dd Keyboard input seems to work, even dead keys, not tested IM, onscreen keyboard not working... 2017-12-06 06:39:37 +01:00
Pere Pujal i Carabantes
4c69fdbb43 Some more progress on SDL2, render seems to begin working. 2017-12-06 06:39:37 +01:00
Pere Pujal i Carabantes
8693724975 More on SDL2. Now compiles, still needs a lot of cleaning and work to deal with SDL_DisplayFormat* from 1.2 2017-12-06 06:39:37 +01:00
Pere Pujal i Carabantes
75089ea473 First attempts to port to SDL2 2017-12-06 06:39:37 +01:00
Mark K. Kim
558b74b7fc In the macOS build, load stamps from within the app path where the 2009.06.28
stamps collection installer installs the stamps.
2017-11-27 01:16:57 -05:00
Mark K. Kim
472bf79bb9 Trying again... 2017-11-27 01:02:41 -05:00
Bill Kendrick
1576935455 More compiler warnings
* Adding a missing local function definition.
 * Ensured a var only used during certain #ifdef was only declared under
   that situation.
2017-10-15 15:05:20 -07:00
Bill Kendrick
41e9fbd0c4 More compiler warning cleanup
Mostly removing some unused variables, but also "using" some
of the new temp vars (e.g., "tmp = fgets(...); (void)tmp;")
2017-10-15 15:00:48 -07:00
Bill Kendrick
5907713cdd Remove unused reset_brush_counter_and_frame()
reset_brush_counter() gets called, but reset_brush_counter_and_frame()
never does; removing it.
2017-10-15 14:45:22 -07:00
Bill Kendrick
b693003b14 Remove some unused funcs & declarations
Removing more unused functions, and moving a declaration in fonts.h
to fonts.c, since it's not used externally (reliable_read()).
2017-10-15 14:38:52 -07:00