Commit graph

924 commits

Author SHA1 Message Date
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
Bill Kendrick
502edda2b1 Remove unused in_circle() func
in_circle() isn't used; in_circle_rad() is.
2017-10-15 14:33:11 -07:00
Bill Kendrick
dc167b4c52 Remove unused funcs remove_slash, replace_tilde
Remove unused funcs remove_slash() (an identical one exists
in win32_print.c) and replace_tilde().
2017-10-15 14:29:12 -07:00
Bill Kendrick
1ae588baf8 More compiler warning cleanup (WIP)
Picking at more compiler warnings.
2017-10-15 13:09:05 -07:00
Bill Kendrick
284a64a08f tuxpaint.c code & warning clean-up (WIP)
- Replace any C++ style comments (// ...) with C style (/* ... */).
 - Improve calls to fgets() to avoid "ignoring return value
   of ‘fscanf’, declared with attribute warn_unused_result
   [-Wunused-result]" errors (WIP).
 - Removed some unused, commented-out code.
2017-10-15 12:57:43 -07:00
Bill Kendrick
f03785e532 indent tuxpaint.c -- the whopper!
The big one we've all been waiting for -- ran indent on tuxpaint.c
(which itself is ~25K lines long, and really needs to be split up).

Hopefully the code will look less atrocious now :-)
2017-10-15 12:16:05 -07:00
Bill Kendrick
5e0d51c771 Sanitized some grid_dims assignments
A number of assignments of grid_dims structs were of the form of
(ignoring some carriage returns, which undoubtedly added to the
confusion):

  gd_controls = (grid_dims) { 3, 2 };

which confused `indent`, causing it to think certain if/else blocks
were being ended early.

Turning these into assignments, like so, to avoid this:

  gd_controls.rows = 3;
  gd_controls.cols = 2;
2017-10-15 12:06:27 -07:00
Bill Kendrick
3e96684bde Pointer assignment syntax tweak
Correcting for a warning given by indent:

  Warning:old style assignment ambiguity in "=*".  Assuming "= *"
2017-10-15 11:55:50 -07:00
Karl Ove Hufthammer
6698b5e844 Fixed spelling mistake. 2017-07-29 13:46:08 +00:00
Pere Pujal i Carabantes
54179955b6 Color selector to pick a color from the draw. 2016-06-14 22:18:01 +00:00
Pere Pujal i Carabantes
c692eca118 Recovering tilde expansion from config files. Thanks to Juha Erkkilä for reporting and investigating. wordexp() code copied and adapted from old Bill's code. 2015-09-13 23:42:40 +00:00
Pere Pujal i Carabantes
b0f9edcc8e Korean Hangul now seems to refresh right when deleting(Backspace) buffered chars. 2015-05-30 22:43:24 +00:00
Shin-ichi TOYAMA
c0038993ef Update surface for tool options' area after new' dialog invoked from Ctrl-N. 2015-05-05 01:54:22 +00:00
Pere Pujal i Carabantes
bc1fe2d6fe Adding Star definitions to shapes. 2014-10-19 23:33:51 +00:00
Thomas Klausner
783b0ef9ab Fix build on SunOS (fmemopen).
From Jonathan Perkin <jperkin@NetBSD.org>.
2014-09-24 22:01:28 +00:00
Shin-ichi TOYAMA
1d887762e4 Did not compile on envirnment without SVG support (such as Windows 9x) 2014-09-12 18:05:53 +00:00
Shin-ichi TOYAMA
8d1d780b73 Fixed crash bug when loading label including whitespace. 2014-08-22 14:43:08 +00:00