Commit Graph

8501 Commits

Author SHA1 Message Date
David Capello
9a3958278b Fix bug moving a cel, flattening all layers, and then undoing (fix #3416)
The m_boundsF position read from doc::read_celdata() was overwritting
the position of the cel when it was restored from the undo
information.
2022-07-11 10:24:43 -03:00
David Capello
62c052dd40 Use a std::unique_ptr for m_boundsF in doc::CelData 2022-07-11 10:21:38 -03:00
David Capello
d46724329f Minor improvement in FlattenLayers to avoid some cmds
Instead of creating cmd::SetLayerName and cmd::MoveLayer, we can add
the layer with its name and in the correct place directly.
2022-07-11 10:10:36 -03:00
David Capello
7ca66790c5 [win] Fix rounded corners on Windows 11 when some windows appear for first time 2022-07-10 22:22:57 -03:00
David Capello
6e0394b7dc Fix using MoveMask command without visible selection
Issue found testing #2796 without selection/without calling SelectTile
command.
2022-07-07 16:33:39 -03:00
David Capello
daa7cc837a Minor change: Add const to some pointers in write_layer() 2022-07-07 16:10:51 -03:00
David Capello
8fe88606c6 Fix possible std::clamp() assert fail 2022-07-07 16:08:40 -03:00
David Capello
1b76076c52 Fix clicking a menuitem that is above another parent menubox/bar (fix #3386) 2022-07-07 16:07:22 -03:00
David Capello
59c6c06fa0 Add missing libc++abi-10-dev dependency on Linux (#3382) 2022-07-03 12:41:02 -03:00
David Capello
4f2eae6b77 Use C++17 [[fallthrough]] if needed 2022-06-29 20:14:03 -03:00
David Capello
b01c28c48d Add missing override modifier 2022-06-29 20:05:58 -03:00
David Capello
7aa90db770 [lua] Add undo information in Sprite:newSlice() (fix #3393) 2022-06-29 19:46:37 -03:00
Martín Capello
c00f4b0d26 Comment m_overlap->setImmutable() to avoid crashing when moving tabs while debugging on windows 2022-06-29 15:02:21 -03:00
David Capello
6bd7518aea Merge branch 'drm' into beta 2022-06-29 11:45:30 -03:00
David Capello
72df89f917 Fix ambiguous mix of || and && in if-expression 2022-06-29 11:21:58 -03:00
David Capello
d1e08fdb2f Fix initialization order of AsepriteUpdate members 2022-06-29 11:10:18 -03:00
David Capello
8cccad4472 Avoid warnings about URLs in enter_license.xml dialog 2022-06-29 10:58:51 -03:00
Martín Capello
bbbf866775 Fix name of define used in ifdefs 2022-06-28 19:16:36 -03:00
Martín Capello
627c96228b Replace use of the new operator with std::make_unique 2022-06-28 19:16:32 -03:00
Martín Capello
d63c0f7e4b Remove unnecessary DRM_CONFIGURE macro definition 2022-06-28 19:16:27 -03:00
Martín Capello
c640aee88a Add app url parameter to DRM_CONFIGURE macro 2022-06-28 19:16:24 -03:00
Martín Capello
11d6eb1d07 Include ui/timer.h 2022-06-28 19:16:19 -03:00
Martín Capello
6535defe3c Improve installation phases handling 2022-06-28 19:16:16 -03:00
Martín Capello
c764e364af Add installation thread to the update process 2022-06-28 19:16:07 -03:00
Martín Capello
7ec08ca54c Add Aseprite update dialog and fix enter license dialog 2022-06-28 19:16:03 -03:00
Martín Capello
1403424f3a Update licence activation dialog to use a new version of the DRM's license manager that doesn't emit events 2022-06-28 19:15:47 -03:00
Martín Capello
b95e402449 Remove redundant include 2022-06-28 19:15:42 -03:00
Martín Capello
854e4eb370 Add conditional compilation of code for DRM-enabled trial version 2022-06-28 19:15:34 -03:00
Martín Capello
48ffaaa378 Update CMakeLists to configure it properly when enabling DRM 2022-06-28 19:15:27 -03:00
Martín Capello
776b97deef Refactor EnterLicense dialog and add license activation handling 2022-06-28 19:13:55 -03:00
Martín Capello
2639c36b2f Create EnterLicense dialog 2022-06-28 19:09:10 -03:00
Martín Capello
588d8027f4 Conditionally compile the license activation code when the ENABLE_DRM flag is defined 2022-06-28 19:09:10 -03:00
Martín Capello
122769c836 Change the error message when the Save operation is not available 2022-06-28 19:09:10 -03:00
Martín Capello
f672193732 Fix linked libraries when ENABLE_DRM is on. 2022-06-28 19:09:10 -03:00
Martín Capello
740dd166de Refactor the code to change the "register" dialog for "enter_license" dialog 2022-06-28 19:09:10 -03:00
Martín Capello
fcac48cccb Add option to enter Aseprite license key (#2664)
This is an initial version to add an automatic update feature in the
future.
2022-06-28 19:09:10 -03:00
David Capello
faecd682fc Merge branch 'main' into beta 2022-06-28 19:05:54 -03:00
Martín Capello
306e13dfad Clear the exported images with its mask color instead of 0 (fix #3391) 2022-06-28 18:43:23 -03:00
Gaspar Capello
1f5e4cfc4f Add '{title}' and '{layer}' functionality to the Export dialog (fix aseprite/aseprite#3363)
Also Add '{title}' functionality to CLI dialog on sprite-sheet file name
2022-06-28 18:42:33 -03:00
David Capello
3d0b5d809c Fix bug in move_or_copy_palette_colors() accessing out-of-range index 2022-06-28 15:17:29 -03:00
David Capello
3adfe13b7e Add RelWithDebInfo and Debug build types to GitHub actions 2022-06-28 14:55:36 -03:00
David Capello
0aeacd46de Disable ccache on Windows (fix #3404) 2022-06-28 14:33:12 -03:00
David Capello
aaf779e399 Update laf module 2022-06-28 14:02:33 -03:00
David Capello
6d30f274f4 [msvc] Fix problem using invalid min/max bounds in std::clamp
There is an assert() in the std::clamp() impl on MSVC that checks if
the min/max values are valid.
2022-06-28 14:02:18 -03:00
David Capello
caf475b2dc Merge branch 'main' into beta 2022-06-15 13:44:34 -03:00
David Capello
b7d5d4a2c9 Editable resize factor in File > Export (fix #3007)
Related to #3008
2022-06-15 12:25:43 -03:00
David Capello
af74f8bc84 Fix memory leak when the created cel is not used in ExpandCelCanvas 2022-06-14 23:25:10 -03:00
David Capello
4aa5fedfec New "on the fly" resize when saving/exporting image (fix #1112)
Implemented using a new FileAbstractImage interface to get scanlines
for each frame automatically resized (without modifying the original
sprite/without using SpriteSize command/adding new undo information).

Related to #3008
2022-06-14 23:19:39 -03:00
David Capello
c58dae51fa Fix crash using a deleted surface in Overlay::restoreOverlappedArea()
Can happen when a resize event is received and m_captured stores the
surface with the old window size.

This was found opening a file from the CLI on Linux/X11.
2022-06-14 21:39:38 -03:00
David Capello
e2798bc849 Fix crash creating the "No Recent File" w/AppMenuItem() (fix #3371) 2022-06-14 14:01:28 -03:00