David Capello
7507c2e4eb
Minor change in BrushLockAlphaInkProcessing<IndexedTraits>::processPixel()
...
We can use m_transparentColor directly (as in other inks) and ask for
the transparent color before pre-processing the pixel if it's not
needed.
2020-02-04 12:51:02 -03:00
David Capello
1bb126fade
Fix pasting text on empty cel when the timeline range is enabled
...
Bug report: https://community.aseprite.org/t/4489
2020-01-30 19:47:23 -03:00
David Capello
d5f0e3189c
Fix bug drawing and zooming with the mouse wheel or pinch gesture
...
The mouse position jumps from one side to other when we zoom because
there were an intermediate scroll change event where the mouse
position is converted using the old zoom.
Fixed regressiong from 951fb7c35784d3e5b0aba86e340aed9edbd2456d
Fixed bug https://community.aseprite.org/t/4587
2020-01-13 15:01:45 -03:00
David Capello
cd598e5539
lua: Add Image:saveAs{ filename, palette } function
2020-01-13 12:27:32 -03:00
David Capello
df63fb9388
Update copyright year on Windows properties and About dialog
2020-01-08 17:44:59 -03:00
David Capello
70a211d978
Fix Palette:setColor() and Color Range command when alpha != 255
...
Use the app::Color alpha property to create the color for an
image (app::color_utils::color_for_image()) in several cases.
Fixed https://community.aseprite.org/t/4548
2020-01-08 17:40:43 -03:00
David Capello
e68cc7dbf9
Fix crash exporting sprite sheets into .gif or .jpg files (formats with onAskUserForFormatOptions())
2020-01-03 10:48:52 -03:00
David Capello
8efb11915f
Fix usage of freed memory after check_flood_line() returns true when 8-connectivity is used
2020-01-02 18:39:23 -03:00
David Capello
c1d5f8eb0a
Move AnimatedWidget from app to ui
2019-12-23 11:14:23 -03:00
David Capello
78353199bb
Remove UI_FOREACH_WIDGET_*() macros
2019-12-20 15:24:41 -03:00
David Capello
34ec123ecc
Remove MIN/MAX/MID macros from ui library
2019-12-20 15:08:34 -03:00
David Capello
87c754a11c
Fix Alt+arrow keys to move selection borders on selection-like tools
2019-12-18 18:00:11 -03:00
David Capello
9d818e0304
lua: Update scripting API number to 9
2019-12-17 15:07:59 -03:00
David Capello
c9b330ab65
lua: Added Dialog:shades{} widget
...
Also ColorShades is a little more generic now (doesn't depends so much
on the ColorBar).
2019-12-16 21:17:12 -03:00
David Capello
2b1903ee02
lua: Add Dialog{ title, onclose } constructor
2019-12-13 10:23:22 -03:00
David Capello
484de6bd3a
lua: Fix memory leak of dialogs with callbacks pointing to itself
...
Now we store the callbacks in a table that depends of the lifetime of
the dialog (instead of the global registry), so when the dialog is not
used anymore/closed, the whole "island" of objects (dialog +
callbacks) is GC'd.
2019-12-12 09:13:21 -03:00
David Capello
45fc74f596
lua: Fix crash on program exit if some metatable.__gc calls print()
2019-12-11 23:46:33 -03:00
David Capello
ff2af4f3e8
lua: Add app.fs object with some functions/properties for file names
2019-12-11 15:39:40 -03:00
David Capello
8139b8a1d4
Move Preferences instance to app::Context
...
With this change we fix some tests when !ENABLE_UI and we start using
less Preferences::instance() (maybe in the future we could exclusively
access the preferences from the new Context::preferences() function).
2019-12-11 12:27:56 -03:00
David Capello
e553777d24
Fix warnings of unused varisables when !ENABLE_UI
2019-12-11 12:22:01 -03:00
David Capello
fa013f4b63
Preferences can be used in non-UI contexts
...
Fixed bug running app_preferences.lua from tests repository.
2019-12-10 19:10:47 -03:00
David Capello
b7f41b811a
Add Screenshot command
2019-12-05 12:05:18 -03:00
David Capello
70ff67e890
Clear save_copy preference values of saved copies (related to #1964 )
v1.2.16.3
2019-12-03 17:38:28 -03:00
David Capello
b190cc985e
Save the whole group of grid/bg/pixel grid settings when these elements are displayed in the Editor
...
https://community.aseprite.org/t/3303/10
2019-12-03 17:37:54 -03:00
David Capello
d8b933c3f1
Load GIF files w/pixels outside the canvas bounds anyway ( fix #2211 )
2019-12-03 09:33:30 -03:00
David Capello
6cab7b208c
Fix using default preferences on new documents ( fix #2198 )
...
Fixed regression introduced in 002abc92452d89dabe601af0bfedf81e3e2ab0fd.
Bug reports:
* https://github.com/aseprite/aseprite/issues/2198
* https://steamcommunity.com/app/431730/discussions/2/1657817111845334892/
* https://community.aseprite.org/t/grid-size-for-new-documents-not-applied/4305
Added new ASEPRITE_USER_FOLDER environment variable to test
preferences from a clean folder.
2019-12-02 19:13:27 -03:00
David Capello
f53ecab282
lua: Add support for app.preferences.document(nil) to get default preferences for new documents
2019-12-02 18:51:43 -03:00
David Capello
1584cc59ac
Update fmt library to v6.1.0
2019-12-02 15:27:28 -03:00
David Capello
f500929ab4
win: Include user fonts directory from AppData
2019-11-29 17:42:33 -03:00
David Capello
ea0e51e82d
Export Sprite Sheet: Fixed exporting selected layers when Split Layers is not checked
...
Bug reported here: https://community.aseprite.org/t/4248/6
2019-11-29 11:50:33 -03:00
David Capello
48c4e49d67
Fix Layer.stackIndex setter when we use a stackIndex greater than the current one
2019-11-29 11:08:18 -03:00
David Capello
116420f978
Put the button to delete backup sessions far away from the button to recover sessions
2019-11-29 11:07:17 -03:00
David Capello
aec82eccb2
Add recent file and folder after exporting sprite sheet ( fix #2202 )
2019-11-29 10:12:21 -03:00
David Capello
a85368c6c2
win: We need psapi to show memory info when ENABLE_DEVMODE is defined ( fix #2205 )
2019-11-28 12:18:16 -03:00
David Capello
52d4818196
Fix crash of cli_tests using copies of AppOptions instances
2019-11-26 17:57:02 -03:00
David Capello
d5e167fc37
Fix crash in case we copy & paste data between 32-bit <-> 64-bit versions of Aseprite
...
For example, this is common when an user installs Aseprite
trial (which is distributed in 32-bit) and then installs the full
64-bit version (e.g. using the installer instead of the portable
version).
2019-11-26 16:45:23 -03:00
David Capello
f3dfc8ab50
Fix flicker during playback when the backup thread starts working
...
This includes a new version of RWLock that allows several
reader locks + a weak lock (the weak lock is used in the
backup thread). In this way the backup thread is not stopped
or canceled when we have just to read the sprite to render it
on the editor.
Regression introduced in 165940164218d8ad10c43f39d08f0559e859098d
2019-11-26 15:54:28 -03:00
David Capello
27f96d6c01
Fix outline_filter.h include guards
2019-11-25 12:01:23 -03:00
David Capello
19a101543e
Add required ImageTraits from dio/pixel_io.h when compiling with modules feature
2019-11-25 11:43:32 -03:00
David Capello
c06fbdf346
Use doc::rgba() to avoid confusion with gfx::rgba()
...
I was testing the Clang modules feature, and this is necessary if we
enable modules because it looks like "gfx/color.h" is included in some
way from this file too.
2019-11-25 11:41:59 -03:00
David Capello
2d79834b1f
Remove unused type in app_options.cpp
2019-11-25 11:40:49 -03:00
David Capello
94dcaf8008
Don't export sprite sheet image on preview or after cancel
v1.2.16.2
2019-11-20 12:18:15 -03:00
David Capello
a668ecbda3
Update laf module
v1.2.16.1
2019-11-19 17:54:55 -03:00
David Capello
a60fea2e5f
Don't include untagged frames in the export when we use split tags option
2019-11-19 11:22:09 -03:00
David Capello
f6dea3dfbf
Remove unused vars
2019-11-15 16:24:35 -03:00
David Capello
6777c2f34b
Add ui::Widget::kCutTopWindowsAndUseChildArea flag
2019-11-15 16:22:44 -03:00
David Capello
0b6f2d4e8f
Update flic module (fix crashes loading invalid FLIC files)
2019-11-15 11:29:55 -03:00
David Capello
da37bec54d
Fix unused var on release compilation
2019-11-15 10:46:37 -03:00
David Capello
b5b450afba
Fix crashes using deleted items from the file selector navigation history ( fix #2192 )
...
Now if we detect that a folder doesn't exist anymore, we remove the
item from the navigation history to avoid having a pointer to an
invalid IFileItem.
2019-11-15 10:44:43 -03:00
David Capello
c1d5c94e22
Disable forward button correctly when the file selector is opened
2019-11-14 17:55:13 -03:00