Commit graph

1308 commits

Author SHA1 Message Date
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
Thomas Klausner
b051ebf5df NetBSD needs fmemopen_alternative set too. 2014-08-17 09:49:53 +00:00
Shin-ichi TOYAMA
6401b3a456 Did not load system template images. 2014-08-17 03:30:37 +00:00
Pere Pujal i Carabantes
79e6da0fb6 Commenting out printf()s 2014-08-14 06:08:48 +00:00
Pere Pujal i Carabantes
b9a8a05618 More tweaking on stamps handling of fallback languages 2014-08-13 23:09:56 +00:00
Pere Pujal i Carabantes
85082b9092 LANGUAGE and env vars should work for stamps too, fallbacks should also work, also on Windows. 2014-08-04 00:02:54 +00:00
Pere Pujal i Carabantes
4313374ab0 Adding F5 as a key to emulate mouse clicks. Found a laptop that doen't has the [Insert] key. 2014-06-28 23:07:32 +00:00
William Kendrick
19f5adaf4d Cleaning up some OSK code to avoid leaking so much memory.
Note: Planning to make keyboards load once, rather than every
time a switch happens.
Some other memory leak fixes.
2014-04-23 08:20:50 +00:00
William Kendrick
330ab19600 Updated copyright date on title screen. 2014-04-16 07:02:07 +00:00
William Kendrick
bc2351baf8 Fixed bug that prevented starters with ",jpeg" backgrounds ('-back') from
having their background loaded.
2014-04-16 06:56:40 +00:00
Shin-ichi TOYAMA
66e679af44 re-enabled including librsvg-cairo.h 2014-04-12 08:21:52 +00:00
William Kendrick
d7f9139170 * Keyboard mouse control disabled by default.
* CHANGES.txt updates/corrections:
   * Removed OSK-related FIXMEs, since they're addressed.
   * Noted "--joystick-dev list" feature
   * Noted "--keyboard" (not "--keymouse") for keyboard mouse control
2014-04-07 05:49:04 +00:00
Pere Pujal i Carabantes
1dbe751b4e Using PNGs as symbols in some onscreen keyboard keys. 2014-03-31 13:50:23 +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
a09d239eaf Removed some unused '..._flag' variables. 2014-03-30 05:56:11 +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