Commit Graph

8786 Commits

Author SHA1 Message Date
David Capello
008df4d03a Add ui::Paint = os::Paint = SkPaint
So now we can have access to Skia SkPaint instance directly from
Aseprite UI code (and set the shader, and other properties that are
not yet well-wrapped in laf-os).

We've simplified ui::CheckeredDrawMode with
ui::set_checkered_paint_mode() function, as now the checkered
background shader is stored in ui::Paint (SkPaint) instead of
ui::Graphics state.
2022-09-28 15:49:30 -03:00
David Capello
9c09a55487 Avoid warning in Release mode in View::updateView() 2022-09-26 19:49:26 -03:00
justanobdy
f7154aa0d8 Add SUSE dependencies 2022-09-26 11:19:57 -03:00
Kacper Woźniak
75627bd148 Fix the group attribute for Slice Properties 2022-09-26 11:00:10 -03:00
Gaspar Capello
59fff4ba9c Fix bmp file and bitmap size are incorrectly set during save command (fix #3534)
Before this fix, file and image sizes were calculated incorrectly. This caused problems for some viewers/browsers/engines to load BMPs created in Aseprite.
2022-09-23 18:07:23 -03:00
David Capello
896c02c67f Fix several bugs converting layers (copy user data, blend mode and opacity) 2022-09-23 12:30:22 -03:00
Martín Capello
d53f2f75a5 Fix Advanced Mode disables Tilemap tool (fix #3478) 2022-09-22 15:47:06 -03:00
Gaspar Capello
877ae9eeec Fix uninstalling (or updating) an extensions that has subdirectories results in an error (fix #3385)
Prior to this fix, any additional external files or directories within the Extension's directory tree, break the subdirectory removal iteration, resulting in empty subdirectories and a console error.
2022-09-22 11:30:48 -03:00
Martín Capello
fecfbb1145 Fix icon's Y position when the item is in the last row of a ButtonSet with more than one row (fix #2676) 2022-09-20 17:51:54 -03:00
Martín Capello
6e57546aa9 Fix text Y position when the item is in the last row of a ButtonSet.
The last row of items are a bit taller to make room for the button border, so this compensates that.
2022-09-20 17:51:52 -03:00
Martín Capello
8d5f281998 Fix index mode spray not handling masked color as expected (fix #3063) 2022-09-20 14:35:21 -03:00
Gaspar Capello
8eae7c00ae When eyedropper tool picks a pixel of mask color, the FG color changes to entry 0 (fix #2813) 2022-09-20 14:28:00 -03:00
David Capello
05dd5f8db7 Merge branch 'fix-export-layers-same-name' 2022-09-20 14:25:22 -03:00
Gaspar Capello
fbf62407d3 Fix gif opening causes color reindexing when duplicate colors in color table (fix #3426)
If the RGB color at index 'i' of the local gif palette and the sprite palette match, there is no need to call findMatchColor(). This prevents indexes from being reassigned undesirably.
Also, in the special case that a global palette exists and as long as no local palette appears during frame iteration, it is not necessary to call findMatchColor() since the global palette is equal to the sprite's palette (in colors and order).
2022-09-20 13:52:15 -03:00
David Capello
eadef19924 Update submodules 2022-09-16 12:30:13 -03:00
David Capello
d012bd2d45 Add abstract app::Renderer 2022-09-15 12:39:59 -03:00
David Capello
a471ac8425 Update laf/clip/fmt submodules 2022-09-15 12:29:52 -03:00
David Capello
20cc4ce61b Minor syntax changes for readability of conditions in assignments 2022-09-15 10:43:50 -03:00
David Capello
b3ecf6985f Prefer passing arguments by value instead of by reference when possible
Accessing values should be faster than accessing reference/pointers.
2022-09-15 10:31:31 -03:00
David Capello
c4fefadf79 Move local variable "alpha" inside lambda function 2022-09-15 10:30:17 -03:00
Gaspar Capello
aa41b742bd Fix hidden colors should be discarded (fix #3505)
Before this fix, hidden pixels (alpha == 0 and non-zero RGB values) were added to the octree map.
2022-09-15 10:25:18 -03:00
Martín Capello
a7145ba09c Add asserts to detect when MinSize > MaxSize 2022-09-15 10:06:11 -03:00
Martín Capello
f454d9a0af Add "minheight" properties to avoid std::clamp asserts in visual studio when lo > hi 2022-09-15 10:01:50 -03:00
Martín Capello
826fc1a5fd Remember layer index between export operations 2022-09-13 17:09:58 -03:00
David Capello
eced4734aa Merge branch 'main' into beta 2022-09-09 13:53:26 -03:00
David Capello
9b917fe197 Update laf module 2022-09-09 13:52:40 -03:00
David Capello
f925e22561 Don't encourage the usage of layerIndex param in ExportSpriteSheetParams
Until we don't have a standarized way to indicate layers by indexes.
2022-09-05 17:19:53 -03:00
David Capello
d5f54da021 Avoid hardcoded number of initial items added in the layers combobox 2022-09-05 17:19:53 -03:00
Martín Capello
acdb501fc8 Use layer index to avoid conflicts when exporting sprites with layers that have the same name (fix #2656) 2022-09-05 17:19:53 -03:00
David Capello
03148f9c7c Add SENTRY_ENV option 2022-09-05 16:28:44 -03:00
David Capello
f54605e1ea Fix typo with SENTRY_DSN option name 2022-09-05 16:21:45 -03:00
David Capello
c212e2d8b6 Merge branch 'main' into beta 2022-09-02 14:44:53 -03:00
David Capello
c0a872ee51 Update laf submodule to fix #3433 2022-09-02 14:35:23 -03:00
David Capello
901175d476 Restore possibility to use Ctrl+Alt to copy selection and snap-to-grid at the same time (fix #3497)
If we don't activate Brush Size mouse wheel action when using Ctrl+Alt
key modifiers in a selection-like tool we can use Ctrl+Alt to make
copies of the selected region and snap-to-grid at the same time.
2022-09-02 11:56:07 -03:00
David Capello
87a68b0a81 Fix Ctrl+Alt+drag mouse to increase brush size when moving to the right (fix #3496)
Regression introduced in 50707117f6
2022-09-02 11:47:09 -03:00
David Capello
b168b1191f Replace some bool params with enums 2022-09-02 11:41:46 -03:00
David Capello
8b08a88bd1 Merge branch 'main' into beta 2022-08-31 12:31:44 -03:00
David Capello
ae889d4ae3 Remove unused local variable from BmpFormat::onLoad() 2022-08-31 12:29:56 -03:00
David Capello
8d79350b7c Fix minor warning C4468 in MSVC using [[fallthrough]]
This is the warning C4468: 'fallthrough': attribute must be followed by a case label or a default label
2022-08-31 12:28:52 -03:00
David Capello
85a69a6783 Add missing RangeObj instance in Range_set_tiles() 2022-08-31 12:06:05 -03:00
David Capello
ddafa5083e Merge branch 'main' into beta 2022-08-31 11:57:16 -03:00
David Capello
c79fb8b211 Fix compilation when ENABLE_UI is disabled
E.g. We cannot use current_editor/Editor class for the CLI-only
Aseprite version.
2022-08-31 11:48:16 -03:00
David Capello
2a93672c70 [lua] Range:clear() now clears the selection of slices 2022-08-31 11:36:39 -03:00
David Capello
47aae7fc07 [lua] Support expressions like: app.range.slices=app.activeSprite.slices
Using lua_geti() we can iterate the SlicesObj as a table.
2022-08-31 11:28:37 -03:00
David Capello
6dce23540a [lua] Move app.selectedSlices to app.range.slices
The biggest motivation was that the Range object is already used to
get/set selected objects in the UI, and it's the range used in
operations like Edit > Delete command (which is the case for slices).
2022-08-31 11:17:34 -03:00
lampysprites
4d65b5c925 [lua] Add app.selectedSlices field 2022-08-31 10:36:00 -03:00
David Capello
2789e41d48 [lua] New API version 20 2022-08-31 09:36:27 -03:00
David Capello
6da4000e6c Make Enter key to "Agree" loading the animation sequence when we modify the duration field 2022-08-31 09:11:59 -03:00
lampysprites
c67902dee3 Request frame duration when opening sequences 2022-08-31 09:06:16 -03:00
Gaspar Capello
277e24c799 Minor refactor on old macros within BMP format 2022-08-30 14:44:47 -03:00