6837 Commits

Author SHA1 Message Date
David Capello
98080544cf lua: Rename app.toolStroke() -> app.useTool()
This function was called app.drawWithTool() first, but some tools do
not "draw" (e.g. eraser, selection-like tools, etc.). And then the
app.toolStroke() name could be confused with the Edit > Stroke
command.
2019-03-23 13:31:14 -03:00
David Capello
7d8e493dca Fix crash undoing Edit > Shift (regression from 1c05ea10bb7c6cde8bfc04711ebf104f5b7da658) 2019-03-23 11:44:38 -03:00
David Capello
fd9ff17976 Merge branch 'macos-menubar' of https://github.com/kawa-yoiko/aseprite into kawa-yoiko-macos-menubar 2019-03-23 09:48:56 -03:00
David Capello
396824383f lua: Add app.activeTool + Tool object 2019-03-23 09:19:10 -03:00
Shiqing
5d5aae7311 Fix incorrect layout with --trim and --sheet-pack 2019-03-23 16:06:00 +08:00
David Capello
54f95dda77 Fix gradient origin when the kFromCenter is not used (regression introduced in 250d40c0f3615db2eecc04d038da1ab52eeae265)
When the kFromCenter is enabled, we have to use the middle-point of
the two points controller as the origin of the floodfill algorithm,
but when kFromCenter is not enabled, we use the first point.  This is
the only way to make both cases work well in such a way that the
origin of the floodfill is not displaced when the mouse is moved.
2019-03-22 18:22:30 -03:00
David Capello
3c35887abf Specialize Params::get_as<bool>() to read "true" as a true bool
Just like new params impl Param<bool>::fromString()
2019-03-22 11:47:45 -03:00
David Capello
674f9ff3b5 Get AutocropSprite strings from i18n file
After introducing AutocropSpriteCommand::onGetFriendlyName(), we stop
using the automatic commands_AutocropSprite string from en.ini. This
commit fix that regression from f24eb75298c118500ff4428661fe186eefdde2b2
2019-03-22 11:27:39 -03:00
David Capello
60e8a5967d Minor changes to f24eb75298c118500ff4428661fe186eefdde2b2 2019-03-22 11:26:44 -03:00
David N Campo
f24eb75298 Add --trim-by-grid CLI option 2019-03-22 10:55:26 -03:00
Shiqing
223002c182 Disable app menu during laf modal dialogs on macOS 2019-03-22 13:40:31 +08:00
Shiqing
ca1728fd38 Fix #1606 sprite sheet contains full path of image 2019-03-22 12:42:07 +08:00
David Capello
8062c81018 Remove unused variable 2019-03-21 17:07:59 -03:00
David Capello
9461e609e2 Add dimension and color in theme.xml to customize palette view separators 2019-03-21 16:58:50 -03:00
Shiqing
e9d7fd2a06 Fix app menu may become disabled on macOS 2019-03-21 20:14:57 +08:00
David Capello
4919740861 Add option to disable the separator between palette entries 2019-03-20 14:27:19 -03:00
David Capello
3ec3f75d91 Add radial gradient
Related to:
* https://steamcommunity.com/app/431730/discussions/1/3182216552785250054/
* https://community.aseprite.org/t/radial-gradient/2711
* part of #1629
2019-03-19 20:54:25 -03:00
David Capello
250d40c0f3 Fix gradients from center and/or outside sprite canvas 2019-03-19 20:40:23 -03:00
David Capello
da695c0a98 Keep old recent files so we'll be able to run old versions and new without losing recent files/paths 2019-03-19 10:06:13 -03:00
David Capello
104b68555e Fix crash using UIContext::getAllEditorsIncludingPreview() on ToolLoopBase::limitDirtyAreaToViewport() when a two points controller is used on app.toolStroke() on batch mode 2019-03-18 22:32:50 -03:00
David Capello
33c6fc5f40 lua: Fix tools tests when ENABLE_UI is not defined 2019-03-18 13:30:17 -03:00
David Capello
7aec117b5e Fix segfault on CLI mode because activeInk() tries to access to the color bar 2019-03-16 13:46:09 -03:00
David Capello
25189224b9 lua: Rename app.drawWithTool() -> app.toolStroke() 2019-03-16 13:15:06 -03:00
David Capello
1cb5949e9b lua: Add app.drawWithTool() function 2019-03-15 17:03:02 -03:00
David Capello
79601567c5 Remove assert that can fail in batch mode 2019-03-15 16:26:10 -03:00
David Capello
de5dbe5e24 Use Debug build type on travis 2019-03-15 16:11:20 -03:00
David Capello
d872a0b422 Fix issue where filter preview sometimes doesn't start 2019-03-11 20:18:37 -03:00
David Capello
9cf408541f Add Edit > FXs > Outline command (fix #371, #1198) 2019-03-11 15:35:22 -03:00
David Capello
db348ea3b5 Fix problem adding new error lines in FileOp when \n are not used correctly 2019-03-11 12:01:52 -03:00
David Capello
be067452de Change ReplaceColorFilter color fields from int to color_t 2019-03-11 12:01:28 -03:00
David Capello
e4117d05c5 Minor changes in style/formatting 2019-03-11 11:48:13 -03:00
David Capello
41707c103d Remove unused field from GetPixelsDelegate in convolution filter 2019-03-11 11:43:22 -03:00
David Capello
2527b90544 Remove unused field from ConvolutionMatrixFilter 2019-03-11 11:42:35 -03:00
David Capello
b7b2d4651d Render: Avoid drawing the background image if it's not needed 2019-03-09 15:00:09 -03:00
David Capello
996d385040 Render::renderBg/SpriteLayers() are functions used only inside Render 2019-03-09 12:53:36 -03:00
David Capello
db21a17fba Add DST_OVER blend mode for grayscale color mode 2019-03-09 12:47:23 -03:00
David Capello
2f426e3b2f Fix render_tests with indexed images 2019-03-09 12:46:05 -03:00
Gaspar Capello
f53544842c Fix non-normal blend modes when the backdrop is transparent (fix #1096) 2019-03-09 12:40:31 -03:00
David Capello
cc62e9ed59 Add render_benchmark 2019-03-07 13:44:29 -03:00
David Capello
56d2d14b77
Fix compilation problems of Skia on macOS with libjpeg turbo (fix #1981) 2019-02-23 10:52:52 -03:00
David Capello
4035952238 Do not check sRGB profile when reading/saving png files
Fixes https://community.aseprite.org/t/2656
2019-02-22 11:04:27 -03:00
David Capello
f3265656f2 Replace the ellipse algorithm completely to fix infinite-loops w/huge ellipse sizes
Probably this bug was introduced in 85497740606d9ecdbf9702a24e6c76fb77803a93
2019-02-21 08:26:42 -03:00
David Capello
6a1a21726e Show modified regions correctly in ToolLoop on visible areas in non-active editors
Regression introduced in 6a88713213403179fb04938a99085e60bad7e873
2019-02-21 08:20:00 -03:00
David Capello
7af4365588 Improve cmd::CopyRegion() performance
Here we replace std::stringstream with a base::buffer (std::vector<uint8_t>)
and pre-allocating the required size.
2019-02-20 18:47:38 -03:00
David Capello
6a88713213 Avoid validating hidden areas while we're in the tool loop for tools like line/square/ellipse, etc. 2019-02-20 17:29:20 -03:00
David Capello
b4eb7a0ccd Add support to continue drawing while we're scrolling
This change also avoids three scroll events when we zoom in/out, so
there are no two extra scroll events with invalid mouse position <->
editor position conversions.
2019-02-20 15:57:20 -03:00
David Capello
45837af1fc Minor rename of doLoopStep() argument 2019-02-20 11:17:43 -03:00
David Capello
e960a79a87 Move dirty area from ToolLoop impl to ToolLoopManager 2019-02-20 11:17:09 -03:00
David Capello
3e7bfbb296 Redraw all editors (mainly the preview) after flashing the layer 2019-02-18 14:10:01 -03:00
David Capello
53ace57e81 Change layer flashing implementation (#1997)
This avoids locking the UI for some seconds and should fix the
flashing layer impl for macOS (and maybe other platforms where the
display is not updated immediately).
2019-02-18 11:47:35 -03:00