Commit Graph

7141 Commits

Author SHA1 Message Date
David Capello
c230e8f0ab Add options to save TGA files with 16/24/32bpp & uncompressed/compressed 2020-03-20 19:18:03 -03:00
David Capello
ffdb5f2e42 Update status bar and mouse cursor when editor scroll changes 2020-03-20 15:04:53 -03:00
David Capello
3b9274b9b5 Improve TGA encoder to save files compressed 2020-03-20 12:35:27 -03:00
David Capello
1826d66f10 Fix loading some particular TGA files (multiple scanlines compressed, invalid alpha information, etc.) 2020-03-19 20:52:03 -03:00
David Capello
de1019342a Fixes for aseprite.desktop file (fix #2295) 2020-03-19 12:13:51 -03:00
David Capello
941219363b Keep "Export File" window position saved on preferences (fix #2300) 2020-03-19 09:50:18 -03:00
David Capello
28248bf228 [lua] Add Tag.color property (fix https://github.com/aseprite/api/issues/24) 2020-03-19 08:41:29 -03:00
David Capello
9f88508083 Fix regression with editor canvas border (fix #2294) 2020-03-16 11:40:03 -03:00
David Capello
a0882ba443 Move PACKAGE/VERSION, etc. to new ver-lib
* As we moved the VERSION macro to a .c file, we don't have to
  recompile the whole project when we change the version number.
* Removed the version number from gui.xml
* Removed the invalid first menu item that might appear in the root
  menu when the gui.xml version is outdated in debug mode.
2020-03-16 10:31:32 -03:00
David Capello
23d41e7340 Update laf module 2020-03-11 13:52:47 -03:00
David Capello
609b9accfc [win] Fix error entering to files as a folder when the full path is used in the file selector 2020-03-11 12:27:31 -03:00
David Capello
fd8beb573c We can use slashes in the file selector to go to other folders 2020-03-11 12:26:58 -03:00
David Capello
a19e317212 Merge branch 'fix/2228' of https://github.com/Adrijaned/aseprite into fix-2228 2020-03-11 09:51:32 -03:00
David Capello
afefac73bd Fix compilation when !ENABLE_UI 2020-03-09 10:59:28 -03:00
David Capello
14c046573a Remove dependency with harfbuzz-icu 2020-03-06 16:19:14 -03:00
David Capello
9ec310a5eb Update laf module 2020-03-06 15:35:04 -03:00
David Capello
3f3928cdf2 Fix invalid var name 2020-03-06 15:32:40 -03:00
David Capello
1fe3c3a4bc Add a number to each new slice that is created (related to #1651) 2020-03-06 15:18:10 -03:00
David Capello
99cb95357a Add support to send crash reports from macOS 2020-03-06 14:45:13 -03:00
Josh Soref
e80dfbbdaf
Fix typos in README file (#2177) 2020-03-02 23:33:36 -03:00
David Capello
b106e2c717 Update clip module 2020-03-02 23:09:19 -03:00
David Capello
302dcdc7cf Fix Shift+Enter to play animation in Preview window (fix #2249) 2020-03-02 14:49:38 -03:00
David Capello
062ae58d9e We need to specify the C and C++ flags for our project anyway (undo 00fa254573) 2020-03-02 11:36:53 -03:00
David Capello
00fa254573 Move C and C++ flags override to laf library 2020-03-02 10:55:51 -03:00
David Capello
d86bbcc78d Update minimum version of compilers/platforms 2020-03-02 10:55:20 -03:00
David Capello
95b655168c Use new laf + skia m81 branch
* Some minor refactors due laf changes.
* Updated the instructions to compile Aseprite linking to external
  skia instructions and pre-built packages.
2020-03-01 23:42:08 -03:00
David Capello
eaa2dd14b6 Update submodules 2020-02-27 12:15:41 -03:00
David Capello
817c6e361f Fix crash closing/reopening sprites when "keep closed sprite data in memory" is disabled 2020-02-27 12:02:01 -03:00
David Capello
e3f28acf9e Fix deleting docs from memory when "keep closed docs alive" is disabled & the backup on disk is enabled 2020-02-27 11:32:18 -03:00
David Capello
f0e60d2068 Fix crashes using MaskByColor command after we cannot lock the sprite
If ContextWriter thrown an exception (i.e. we cannot lock the sprite
for writing purposes), the "Mask by Color" ui::Window would persist
with its signal slots, and it creates an unstable scenario where color
change signals are generated from sliders and crashes the program
because we were using a deleted ContextReader variable which was
stored in the stack in MaskByColorCommand::onExecute().
2020-02-26 12:49:23 -03:00
David Capello
5cd23b8522 Fix moving 9-slices rules (regression introduced in 73de6c8b1d) 2020-02-25 15:25:36 -03:00
David Capello
53cb226f09 Fix crash using Flatten Visible when the active layer is a child of a group 2020-02-25 14:12:20 -03:00
Gaspar Capello
54bb39a9d3 Fix tile mode glitch with image brushes
This fix solves u,v set calculation when 'image brush' are used.

The cause of this bug is that we considered the set m_u, m_v as constants.

We have several cases when we are working on X axis:
- Scanline entirely contained in a tile, but OUTSIDE of the reference tile.
- Scanline entirely contained in a tile, but INSIDE of the reference tile.
- The left side of a scanline which was sliced (by the tile limit).
- The right side of a scanline which was sliced (by the tile limit).
Each one has its own m_u, so we need to recalculate it before every loop->getInk()->inkHline(...).

We have to take similar considerations when we are working in the Y axis.
We need recalculate m_v according if 'y+scanline.y' is INSIDE or OUTSIDE of the reference tile, each case has its own m_v.

Bug reports:
* https://community.aseprite.org/t/1183
* https://community.aseprite.org/t/4695
2020-02-20 16:01:12 -03:00
David Capello
9fe05a5dd5 Fix crash double-clicking a moving selection (fix regression in 7b07f29f0b)
Here we avoid two ExpandCelCanvas at the same time with
MovingPixelsState + DrawingState. Double-clicking inside the selection
when we are moving it (MovingPixelsState) could start a new
DrawingState which creates a new ToolLoopImpl that needs a new
ExpandCelCanvas. So we have to drop the pixels before.
2020-02-17 08:28:30 -03:00
David Capello
7b07f29f0b Add possibility to select multiple tiles with double-click + dragging mouse (fix #1988)
Fixes: https://community.aseprite.org/t/1929
Related to #939
2020-02-16 12:42:29 -03:00
David Capello
6b7a593858 Minor formatting change in SelectTileCommand 2020-02-14 14:32:28 -03:00
David Capello
a1317eaede Show some extra debug info if Object::setId() assert fails 2020-02-12 23:07:00 -03:00
David Capello
294401b18a Select the correct tile when we double-click on negative coordinates of the grid 2020-02-11 12:43:29 -03:00
Gaspar Capello
f8cca1eba4 Removed unnecessary lines in remap.cpp 2020-02-11 09:24:24 -03:00
Adrijaned
90ba6d77dd Fix file selector not allowing choosing files by path 2020-02-09 17:42:46 +01:00
David Capello
47a568ee86 Resize selection correctly on "Sprite Size" even when the Bilinear method is used 2020-02-07 15:11:03 -03:00
David Capello
59fa7d956b DocExporter: Don't share the original size between samples
If we use two sprites with different canvas sizes, and both sprites
have a similar cel, they can share the inTextureBounds, but not the
original size (which is the original sprite canvas size of each cel).
This can be reproduced using the CLI and creating a texture
atlas (-sheet) with two or more sprites.
2020-02-06 15:07:40 -03:00
David Capello
a7f1f4bd64 DocExporter: render samples with trimmed size
This fix an issue merging similar cels from different sprites with
different canvas sizes.
2020-02-06 14:23:33 -03:00
David Capello
00cdda7b85 Minor change in DocExporter 2020-02-06 12:01:29 -03:00
David Capello
1c39d907cb Fix bug genering "spriteSourceSize" for similar cels but with different positions in the canvas
This can happen when we use -trim (Trim Cels) + -merge-duplicates
options together. The trimmed bounds are unique to each sample, and
only the position in the texture (inTextureBounds) can be shared.

Fixes: https://igarastudio.zendesk.com/agent/tickets/407
2020-02-06 11:59:29 -03:00
David Capello
df74444347 Now ContextWriter will always wait 1/2 second to unlock the backup thread 2020-02-05 17:50:17 -03:00
David Capello
d316781e8a Remove usage of ContextWriter from all Command::onEnabled() impls 2020-02-05 17:39:56 -03:00
David Capello
7306a685f8 Fix random bug showing disabled menu items right-clicking the timeline
When the backup thread is running, the upgradeToWrite() needed some
extra time to lock the document to check if we can write or not in the
sprite. Now we just check the ability to write the sprite with the new
RWLock::canWriteLockFromRead() function.
2020-02-05 17:03:48 -03:00
David Capello
28969d968c Finally removing a problematic assert from ~UIContext() 2020-02-05 12:23:11 -03:00
David Capello
66864beb77 lua: Fix crash calling app.refresh() from a script using -b -script from CLI 2020-02-05 12:18:12 -03:00