Commit graph

3287 commits

Author SHA1 Message Date
Bill Kendrick
199f79d2db Doc'ing buttonsize in OPTIONS 2021-01-18 23:44:41 -08:00
Bill Kendrick
659b786fe5 Mention --buttonsize in manpage; tab completion 2021-01-18 22:00:05 -08:00
Pere Pujal i Carabantes
5946a0fa71 Better text on scaled buttons. 2021-01-18 23:38:08 +01:00
Bill Kendrick
8529786356 Doc'ing (WIP) larger-UI-buttons in CHANGES.txt
Need fuller description, updating OPTIONS, more testing
and tweaking, etc.
2021-01-18 11:40:05 -08:00
Pere Pujal i Carabantes
2faf78fd21 Merging the resize buttons work. 2021-01-18 14:32:51 +01:00
Bill Kendrick
f2e04e03b0 Doc'ing CPU improvement
h/t Mark Kim
2021-01-16 22:36:21 -08:00
Mark Kim
7727b995c5 Minimize CPU/energy usage
We received a report of Tux Paint generating too much heat on a MacBook
Pro (15-inch, 2017 running macOS Mojave 10.14.6).  The bug report
included a screenshot of Activity Monitor's Energy Tab showing Tux Paint
having an Enegy Impact of "23.4" and Avg Energy Impact of "3.94".

Although we weren't able to reproduce the same conditions exactly, we
did observe Tux Paint having an Energy Impact level of around ~15 even
when idle on both macOS Yosemite 10.10.5 and Big Sur 11.1.  Energy
Impact leve of ~25 when in use was not uncommon, and spiked to ~55.  The
MacBook Air used for testing (11-inch, Early 2014) did not become hot
"to the touch" as was originally reported, but it did become noticibly
warm.

An investigation found the cause to be in two places:

1. Tux Paint's main loop runs fairly tightly, yielding only a minimum
   time slice to the kernel after each iteration using SDL_Delay(1)
   (1 millisecond).  This has been increasd to 10 millisecond to give
   more slice back to the kernel.  Increasing the 1ms yield to 10ms
   should be only minimally noticible as Tux Paint is primarily a human
   interaction software and human eyes perceive responses < ~100ms as
   immediate, giving us over 90ms to accomplish what we need to after
   each iteration as opposed to the previous 99ms.

2. Enabling SDL's timer subsystem (SDL_INIT_TIMER), even when not used
   actively, has a high impact on the energy impact.  Some testing
   showed the timer subsystem, though supposedly a part of SDL_Delay() and
   SDL_GetTicks(), is not required to be enabled to use those functions.
   It does require to be enabled, however, to use SDL_AddTimer() which
   is only used in Tux Paint when scrolling.  Tux Paint therefore has
   been modified to enable the timer subsystem only when scrolling
   starts and disable it when not scrolling.

The solution to #2 is not an ideal approach but it did provide a quick
solution to the user having the problem.  Issue #2 should get resolved
naturally when we upgrade to SDL2 where the timer subsystem does not
appear to have the energy impact issue.
2021-01-16 21:01:21 -05:00
Pere Pujal i Carabantes
01bfcb5846 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2021-01-16 01:21:50 +01:00
Bill Kendrick
c929224ae5 Galician tuxpaint update 2021-01-15
h/t Miguel Bouzada
2021-01-15 09:43:03 -08:00
Bill Kendrick
c97932606f mkdir exportdir's parent, if necessary
Tux Paint's export features will fail if the parent
of the export directory didn't exist.  e.g., using the
default (either via XDG or hard-coded fallback) of
"~/Pictures/TuxPaint/", Tux Paint could not export if
"~/Pictures/" didn't exist yet.  It will now try to
mkdir it as well.  h/t Tim Dickson

Updated OPTIONS documents to explain this.

Also, documenting --exportdir in manpage (was missing!)
2021-01-13 22:48:29 -08:00
Bill Kendrick
c2a4b9862a Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2021-01-13 22:17:27 -08:00
Bill Kendrick
fbfa605bb3 Website updates to do after release 2021-01-13 22:15:32 -08:00
Mark Kim
3c059ffe36 Move custom/macos* files to macos/*
Move all macOS build scripts and resources into the same directory instead of
just having the scripts in one directory and the resources in another.
2021-01-11 18:16:22 -05:00
Bill Kendrick
8406ee701b Adding icon for Clone tool 2021-01-11 09:34:21 -08:00
Bill Kendrick
76c0967a75 Doc'ing tuxpaint.desktop update in RELEASE 2021-01-11 09:05:38 -08:00
Bill Kendrick
514af18700 PO & POT updates after new Magic tools (2020-01-11)
Also, rebuilding tuxpaint.desktop.
2021-01-11 09:04:11 -08:00
Bill Kendrick
1cb04f1e0a "Clone" magic tool 2021-01-10 22:46:34 -08:00
Mark Kim
3b16897586 minor corrections readability updates to macOS README.txt 2021-01-10 11:59:43 -05:00
Bill Kendrick
27b7dfddf5 Added 'how to build using old macOS' to changelog 2021-01-09 17:33:53 -08:00
Mark Kim
7fd171264a Instructions on how to build using old macOS 2021-01-09 09:57:24 -05:00
Bill Kendrick
4049b6cbbc New magic tool: Pixels
Suitable for simple 'pixel art'.  Draws 8x8 pixel rectangles on
a grid across the canvas.

Sound effect created via a small Atari BASIC program sampled in
the open source 'Atari800' emulator (emulating the POKEY sound
chip), and trimmed in Audacity.
2021-01-06 23:02:11 -08:00
Bill Kendrick
0bb663de04 Adding 9to5Linux to RELEASE.txt
Another Linux-y news site.
2021-01-05 21:29:45 -08:00
Bill Kendrick
69f0033197 Doc'ing some post-release announcements
Work in progress, probably forever ;)
2020-12-30 13:45:17 -08:00
Pere Pujal i Carabantes
3fcba585d2 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2020-12-30 20:05:17 +01:00
Mark Kim
4019f8b963 Create Resources directory dynamically at compile time
The 'Resources' directory is used in macOS development to test the binary
without building TuxPaint.app bundle, which is helpful for rapid application
development since creating the app bundle takes a long time.

It's been reported that the symlink in the Resources directory was causing the
'release' target to copy the files in the 'data' directory twice into the
source release tarball.

This change removes the static Resources directory but creates it dynamically
when the 'tuxpaint' target is built and removes it via 'clean' target so the
'release' target does not copy the files in the 'data' directory into the
source release tarball twice.
2020-12-27 23:12:46 -05:00
Bill Kendrick
e3356eb4d8 Mended broken links in README.html
Mended some broken relative links in README.html that
pointed to other parts of the docs.

Also, rename "Mac OS X" to "macOS" in more places.
2020-12-27 18:11:27 -08:00
Bill Kendrick
e78f177a39 RELEASE.txt - also copy docs to site
Website's "/docs" section mirrors docs found in Tux Paint itself.
Want to keep those up-to-date.
2020-12-27 17:54:57 -08:00
Bill Kendrick
bcc233b542 Bump ver to 0.9.26; Expanded release steps
Expanded the steps for making and posting releases
(docs/RELEASE.txt).

Bumped version to 0.9.26.
2020-12-27 17:45:13 -08:00
Bill Kendrick
1c07b66c9f Bump release date; tidy HTML files 2020-12-27 00:37:23 -08:00
Bill Kendrick
f81ad1936c Pointing default_colors.txt link to existing file
h/t Pere (who mended the copy in tuxpaint-website)
2020-12-25 22:00:22 -08:00
Pere Pujal i Carabantes
b0caacde09 Better handle of text in buttons. 2020-12-16 19:10:08 +01:00
Pere Pujal i Carabantes
bf586cae99 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2020-12-13 23:02:31 +01:00
Bill Kendrick
1801c8dd1f Doc'ing Norwegian Bokmål & Nynorsk updates
h/t Karl Ove Hufthammer
2020-12-12 19:19:50 -08:00
Karl Ove Hufthammer
51aa484a58 Updated Norwegian Bokmål and Norwegian Nynorsk translations 2020-12-12 15:27:34 +01:00
Pere Pujal i Carabantes
f29bf895fa Forgot to scale too the erasers, doing now. 2020-12-12 00:42:13 +01:00
Pere Pujal i Carabantes
934f3aed26 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2020-12-11 23:53:37 +01:00
Pere Pujal i Carabantes
49d7628370 Icelandic update by Sveinn. 2020-12-11 19:07:23 +01:00
Mark Kim
60e064b34f Change osx_ prefix to macos_ in Makefile
Apple has changed the name of their OS from OS X to macOS a loooong time ago.
It's about time to update it in the Makefile.
2020-12-10 17:40:34 -05:00
Mark Kim
c7ed85cd88 Change "echo -n" to "printf" in Makefile
The `echo` command built into the default macOS shell doesn't understand -n.
This commit changes it to use "printf" instead which should be fairly portable
across other OS's.  Feel free to change it back if it breaks anything.
2020-12-10 16:47:05 -05:00
Bill Kendrick
387f1ed06d Doc'ing French update 2020-12-08 09:45:06 -08:00
jimmy
9b974311cf jacques.chion@orange.fr
modifié :         fr.po
2020-12-08 10:52:22 +01:00
Bill Kendrick
71152d1369 Bump latest mod. date in docs and tuxpaint.c 2020-11-21 14:27:26 -08:00
Bill Kendrick
032c89a65e Fix: struct dirent has no "d_type" on MinGW/MSYS2
I found current git tree does not compile on Windows because
struct dirent has no member "d_type" on MinGW/MSYS2.
(TOYAMA Shin-ich via Tuxpaint-devel list)
2020-11-21 14:26:08 -08:00
dolphin6k
de907326cf Reverted to Inno Setup Version 5 (for Windows 2000 & XP) 2020-11-15 22:36:05 +09:00
dolphin6k
612c7cae46 install-dlls.sh does not collect all required dlls on JP's build env. 2020-11-15 22:11:18 +09:00
dolphin6k
968de6f0ea Enabled compiling on John Popplewell's build environment (for Windows 2000 & XP) 2020-11-15 13:47:29 +09:00
Bill Kendrick
a36dcee321 Mend personal Template loading bug in New dialog
Mended bug where a personal Template could not be loaded
due to how we tracked which entry in the "New" dialog
was the first template image.

Also, don't track directories when searching for Starters and
Templates (e.g., ".", "..", and ".thumbs"), since it's just
a waste of time/space.
2020-11-13 20:36:35 -08:00
Bill Kendrick
5a1a80ff69 Correct locked shapes' rotation after corner drag
When using the new (on 0.9.25) corner-drag option for creating
a new shape, "shape-locked" (1:1 aspect ratio) shapes -- square
and octagon -- would only rotate in a few positions, based on the
angle of ther vertices.

Corrected this, with no apparent adverse effect on other shapes,
in either drag mode (classic "from-center", and new "from-corner").

Also, removed extranous whitespace before EOLs in src/tuxpaint.c.
2020-11-10 09:54:50 -08:00
Pere Pujal i Carabantes
aae22f0593 Correcting Devaganari to Devanagari 2020-11-06 21:47:42 +01:00
Bill Kendrick
df7d402cc2 Converted FAQ from bullet lists to definition lists.
(Forgot to include CHANGES.txt itself)
2020-10-30 13:46:40 -07:00