Commit graph

1190 commits

Author SHA1 Message Date
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
William Kendrick
904a82477d Remove some leftover debugging output. 2014-01-31 05:48:56 +00:00
William Kendrick
5b1ba9d0a0 If a non-SVG starter or template with the same name as an SVG one
existed, it would be loaded instead of the SVG (despite a thumbnail
of the SVG appearing in the file selector).
SF.net Bug #191
2014-01-24 08:25:58 +00:00
William Kendrick
b1c910dd9a Fixes issue where starters or templates with uppercase filename extensions
were failing to open. (SF.net Bug #191)
2014-01-24 07:24:18 +00:00
Scott McCreary
e5f8b475ed Moved z_streamp up to top of block so it builds with GCC2, and include zlib.h on Haiku 2013-11-05 06:07:58 +00:00
Scott McCreary
fa665e06f0 Avoid redefining TRUE and FALSE on Haiku 2013-11-04 19:16:28 +00:00
Pere Pujal i Carabantes
b4f060fd58 Adapting the STAMP tool to play nice on touchscreens. Needs testing. 2013-05-12 22:52:45 +00:00
Pere Pujal i Carabantes
da252b2ece A workaround for dealing with non ascii paths in windows, from http://sourceforge.net/p/tuxpaint/bugs/188/ 2013-04-17 16:51:06 +00:00
Pere Pujal i Carabantes
01556f1522 Picking the color at mouse release so if running on a touchscreen device one can get an overview of what wil be selected while dragging the finger on the screen. 2013-04-02 21:39:32 +00:00
William Kendrick
1bbf65f689 Forgot spacing for new inksplat brush.
Random brushes avoid repeating the same frame twice.
2013-02-18 07:39:06 +00:00
Shin-ichi TOYAMA
7d96e5a877 With old png.h, PNG_HAVE_IHDR is not defined unless PNG_INTERNAL is defined 2012-08-18 09:18:41 +00:00
Pere Pujal i Carabantes
0e7efadcd6 Using UTF-8 to save label data in Win32 too. 2012-05-22 21:31:18 +00:00
Pere Pujal i Carabantes
0bc140b12c Labels working on Linux 64bits, templates saving/reloading properly. 2012-03-28 22:12:17 +00:00
William Kendrick
05f33a2a08 Aragones translation. 2012-03-02 17:44:19 +00:00
Pere Pujal i Carabantes
badddd570e More on win32: Labels where not correctly saved/opened. 2011-12-09 15:44:23 +00:00
Pere Pujal i Carabantes
4c76598cb0 Some less warnings and not crashing when freeing. 2011-12-01 23:21:45 +00:00
Pere Pujal i Carabantes
010f81cca3 Showing the letters/symbols that will be produced in the onscreen keyboard. 2011-11-09 12:23:39 +00:00
Pere Pujal i Carabantes
a35208c8d0 Recovering the onscreen keyboard when returning from things like open, new, print... 2011-10-14 15:36:22 +00:00
Pere Pujal i Carabantes
f471b824db Tweaking the keyboard drives tuxpaint code 2011-10-14 15:33:14 +00:00