Commit graph

2973 commits

Author SHA1 Message Date
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
72f59772fc Crediting JianWei for the Android port. 2017-12-06 06:52:17 +01:00
Pere Pujal i Carabantes
b08e1f9ca0 Remade magic sounds that played too low compared on how they were playing in the SDL1.2 version of Tux Paint. 2017-12-06 06:39:41 +01:00
Pere Pujal i Carabantes
5c8419c914 Remade sounds that played too low compared on how they were playing in the SDL1.2 version of Tux Paint. 2017-12-06 06:39:41 +01:00
Pere Pujal i Carabantes
ede838caf9 Syncing with the android version... 2017-12-06 06:39:41 +01:00
Pere Pujal i Carabantes
b6c191fec9 Regen of sounds, now they seem to play fine with SDL2. 2017-12-06 06:39:40 +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
51f2e90c7d Converting sounds that doesn't play right with SDL2_Mixer (Converted with sox -r to half and quarter of 44100, try/error approach) 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
ee3529b7bf Recovering Traditional Chinese IM 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
35f7ebd482 Mosaic_shaped seems to work again with SDL2 (manually merged) 2017-12-06 06:39:39 +01:00
Pere Pujal i Carabantes
4e8c5287ed Adding support for sdl2pango, Thanks Jianwei Zhang 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
9759e648ea Onscreen keyboard seems begin working, still not tested IM... 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
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
a8a0276f89 Noted indent-ification in CHANGES.txt 2017-10-15 12:18:36 -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
Bill Kendrick
1bb6bbeef4 indent magic tool example code (tp_magic_example.c)
Sure, why not?  Running `indent` on "tp_magic_example.c" in the
Magic Tool development docs :-)
2017-10-15 11:52:51 -07:00
Bill Kendrick
4ab8280bbe indent xor.c 2017-10-15 11:51:27 -07:00
Bill Kendrick
5a88d476c8 indent waves.c 2017-10-15 11:51:22 -07:00
Bill Kendrick
cc7dd8e3c9 indent tv.c 2017-10-15 11:51:18 -07:00
Bill Kendrick
011f7f27c1 indent tornado.c 2017-10-15 11:51:13 -07:00
Bill Kendrick
cf3173690d indent toothpaste.c 2017-10-15 11:51:10 -07:00
Bill Kendrick
5871ef9b3a indent tint.c 2017-10-15 11:51:06 -07:00