Commit Graph

6608 Commits

Author SHA1 Message Date
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 8549774060
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 6a88713213
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
David Capello
7cce194f71 Add CODEOWNERS file to assign PRs automatically 2019-02-17 23:09:53 -03:00
David Capello
89bf12a60a Fix arrow keys to move the selection content
Regression introduced in 1c05ea10bb
2019-02-15 17:33:48 -03:00
David Capello
798d0e9a08 lua: Add functions to modify the selection (Sprite.selection and Selection.origin) 2019-02-15 17:19:23 -03:00
David Capello
7594ebf25b Generate selection boundaries automatically after transactions
Now Transaction::commit() will regenerate mask boundaries
automatically if in the middle of the transaction the document
selection was modified. This is the first step to finally remove
update_screen_for_document() and any kind of manual screen
refresh.

This will be useful for scripting functions that modify the selection
too, because we wouldn't need to regenerate the selection boundaries
automatically from the script or from app.refresh() Lua function.

Related to #378
2019-02-15 17:14:44 -03:00
David Capello
668b29193a Remove unused Project-related classes 2019-02-15 15:49:36 -03:00
Gaspar Capello
1c05ea10bb Fix shift after flip throws error (fix #1873) 2019-02-15 11:18:14 -03:00
Gaspar Capello
5cb0adc46a Fix tga creates Background layer on Load (task #1997) 2019-02-13 16:19:33 -03:00
David Capello
e0e83f0d40 Add Dialog:file() (#1997, fix aseprite/api#7) 2019-02-13 16:15:04 -03:00
Gaspar Capello
b3eba1c952 Fix unnecessary warning saving TGA (fix #1830) 2019-02-12 19:03:07 -03:00
David Capello
ddd7140841 Fix segmentation fault running cli/sheet.sh test from https://github.com/aseprite/tests 2019-02-12 18:28:37 -03:00
David Capello
e670a7a5d6 Move some new raw strings from Import Sprite Sheet .xml to en.ini 2019-02-11 09:52:01 -03:00
David N Campo
bdd4202c35 Add Trim by Grid option in Export Sprite Sheet (#1926)
This adds the logic and UI part of Trim by Grid feature, the CLI part
is not yet implemented.
2019-02-07 14:07:42 -03:00
David Capello
b8d5e86a8d Fix PixelIO<doc::RgbTraits>::write_pixel()
This is an unused function at the moment (because we have to move the
encoder from ase_format.cpp to the dio module yet).
2019-02-07 12:50:09 -03:00
Gaspar Capello
20aa9992c7 Fix timeline left cel edge bug (fix #1879) 2019-01-29 09:31:59 -03:00
Gaspar Capello
d4607e889b Add Import Sprite Sheet padding (fix #78) 2019-01-29 09:10:47 -03:00
David Capello
67e0da478d Interpret the Extrude option just like one extra inner padding pixel in calculate_sheet_size() function 2019-01-25 15:59:44 -03:00
David Capello
86464bc63c Fix Best Fit option when Extrude option is checked 2019-01-25 15:57:40 -03:00
David Capello
9a0b0140bf Update texture size when the Extrude check-box is changed 2019-01-25 15:48:58 -03:00
David Capello
3910e20082 Minor changes in calculate_sheet_size() 2019-01-25 15:44:33 -03:00
David N Campo
6ba71343dc Calculate sprite sheet size correctly when extrude option is checked 2019-01-25 15:38:53 -03:00
David N Campo
dee2dde520 Remember last user choice of 'Extrude' option in Export Sprite Sheet 2019-01-25 15:37:33 -03:00
David Capello
da6d911d85 Update submodules for some X11 fixes when there is no X11 server running 2019-01-11 21:12:31 -03:00
David Capello
74b2423070 lua: Add "focus" property for Dialog widgets (mainly button and entry) 2019-01-10 16:20:11 -03:00
David Capello
3fddf4dfef lua: Avoid cmd::SetPalette() when there is nothing to change 2019-01-10 16:19:46 -03:00
David Capello
f1f888a819 lua: Add possibility to change Sprite.filename property 2019-01-10 16:19:11 -03:00
David Capello
d11296af31 Now tests need submodules 2019-01-10 09:51:04 -03:00
David N Campo
cf1711c2af Add 'Extrude' option to 'Export Sprite Sheet' command (fix #1890)
Merged #1978 (squashed). The only solved conflict was that now
ExportSpriteSheet use params, so we've added the "extrude" param to
ExportSpriteSheetParams.
2019-01-10 07:49:19 -03:00
Gaspar Capello
3dc76d08c4 Add aspect ratio on status bar (fix #1769) 2019-01-10 07:14:01 -03:00