7374 Commits

Author SHA1 Message Date
David Capello
fa54bb1950 Fix memory leak in load_document() 2020-04-23 23:32:09 -03:00
David Capello
9fd9ea365f Fix regression introduced with dynamic gradients
Now inks need a prepareForPointShape() call.
2020-04-23 20:26:18 -03:00
David Capello
1d15bacdcd Add sensor tweaks to specify min/max thresholds of the sensor input
In this way we can translate the sensor input to a better output range
for our specific device (mouse, stylus, etc.).
2020-04-23 18:03:34 -03:00
David Capello
8677c809fe Update laf module 2020-04-23 13:38:58 -03:00
David Capello
4cfa5e743e Add addition mode back for Hue/Saturation filter (fix #1848) 2020-04-23 12:05:09 -03:00
David Capello
d1843fcf55 Fix interpolation between stroke points with line brush (fix #728)
Related to #245, and there are still problems with gaps using new
dynamic angle parameters.
2020-04-23 11:30:36 -03:00
David Capello
3b370c2ff5 Minor formatting changes 2020-04-22 20:20:04 -03:00
David Capello
3c1ea2f407 Add/process dynamic data in/from stroke points (related to #710)
* Converted Stroke points from gfx::Point to Stroke::Pt
* Process gradient data to create shading betweens points or dithering
  with new doc::Brush patterns
2020-04-22 20:17:14 -03:00
Gaspar Capello
af7e85313a Fix gif encoder, blended indexed images could be selected to preserve palette orders, but it is not possible.
Before this fix, multi layer blended indexed images (into the gif options dialog), could be checked in the preserve palette orders check box, but actually it is not possible.
In addition, we bypass large code blocks when we have to preserve palette order.
2020-04-22 11:23:16 -03:00
David Capello
79f9e28ce8 Added pen pressure sensitivity (fix #710)
- Added support to detect eraser tip on Linux (#610)
- Related to #139
- Still needs works for gradients and better brush interpolations
  between stroke points
- Requested several times, e.g. https://community.aseprite.org/t/1077
  https://community.aseprite.org/t/1881, steam forum, etc.
2020-04-21 22:27:49 -03:00
David Capello
5affdbbae1 Shox extensions in different categories in the Preferences dialog 2020-04-20 14:20:07 -03:00
David Capello
ff3e9504fd Fix crash disabling extensions 2020-04-20 14:11:48 -03:00
David Capello
1f34d0e46e Add different formulas to convert RGB to Grayscale 2020-04-20 10:22:41 -03:00
David Capello
07f1510ebd User can configure "auto select layer" in quick mode independently
Now we have one "auto select layer" option for the quick mode of Move
tool (Ctrl/Cmd key, true by default) an other option for the regular
Move tool mode (false by default).
2020-04-18 21:21:14 -03:00
David Capello
0e32fb653d Fix problem with libarchive adding /we flag on MSVC Debug 2020-04-18 20:27:46 -03:00
David Capello
f689c2c48e Fix compilation of trial version 2020-04-17 18:31:03 -03:00
David Capello
e56cc15326 Add possibility to use New Layer via Cut/Copy with ranges
Requested here: https://community.aseprite.org/t/5222
2020-04-17 16:13:22 -03:00
David Capello
fb68407e04 Add support to call Flip command without UI 2020-04-17 12:32:10 -03:00
David Capello
c0d4264789 Fix crash loading some kind of .zip extensions w/filename w/Unicode chars 2020-04-17 10:58:47 -03:00
David Capello
9a06deb0e6 [lua] Clear selected colors with app.range:clear() too 2020-04-16 21:26:28 -03:00
David Capello
e149f76934 [lua] Add Range.layers/frames setters and Range:clear() 2020-04-16 19:19:18 -03:00
David Capello
48e941cb2f [lua] Add Dialog:newrow{ always } 2020-04-16 11:48:44 -03:00
David Capello
7482024827 [win] Fix opening files from File Explorer in the running instance through DDE messages 2020-04-16 11:19:39 -03:00
David Capello
58e78ad886 [win] Disable warning 4244 on MSVC 2020-04-16 11:18:45 -03:00
David Capello
8d7020a063 GifDecoder: Minor change to trace more info per frame w/GIF_TRACE() 2020-04-16 08:53:56 -03:00
David Capello
ae9c37e90c Update lua module 2020-04-15 16:27:01 -03:00
Gaspar Capello
966daf5e34 Add RgbMap algorithm option in RGB -> Indexed color mode conversion dialog 2020-04-15 15:36:50 -03:00
Gaspar Capello
80cbb2caf5 Add combobox to select RGB5A5/Octree algorithms in ColorQuantization dialog 2020-04-15 11:07:13 -03:00
Gaspar Capello
696bb9a537 Add possibility to use OctreeMap in create_palette_from_image() 2020-04-14 20:01:25 -03:00
Gaspar Capello
f1899ee397 Minor fix in OctreeMap::mapColor function 2020-04-13 11:16:40 -03:00
Gaspar Capello
ecca4a7822 Fix color scan area in delta image when the color count surpass the gif specifications 2020-04-13 09:54:32 -03:00
David Capello
2e968d7a09 Minor changes in OctreeMap: Avoid extra heap allocations for members 2020-04-10 15:51:59 -03:00
Gaspar Capello
886fdf8b3f Add OctreeMap as an alternative RgbMap implementation to RgbMapRGB53A
There is a new experimental option to switch between both RgbMap
implementations.
2020-04-10 15:47:24 -03:00
David Capello
ad31c9b7a8 Convert RgbMap into an interface and rename the old class to RgbMapRGB53A 2020-04-10 10:15:04 -03:00
David Capello
bbb6b83905 Make doc::RgbMap a regular object (don't need to be an doc::Object) 2020-04-10 08:58:59 -03:00
Gaspar Capello
43b029391f Fix an error and infinite loop when RGB image is over the gif specification color count. 2020-04-09 10:24:59 -03:00
David Capello
b007c4dd0e Minor changes/comments to new gif encoder 2020-04-09 10:24:24 -03:00
Gaspar Capello
7ed83c10cc Fix gif format encoding 2020-04-09 10:23:36 -03:00
David Capello
2af6a0493e Fix recent list of files menu
This is a problem introduced with the plugin groups, but now we use a
group to store the list of recent files. With this commit we fixed
some bugs in the impl of menu groups.
2020-04-08 17:50:17 -03:00
David Capello
85af3ce735 Fix Widget::previousSibling() impl 2020-04-08 17:48:26 -03:00
David Capello
8b1b624320 Replace NULL to nullptr in ui library 2020-04-08 17:48:06 -03:00
David Capello
28a28cff50 Update laf module 2020-04-08 17:29:57 -03:00
David Capello
b491e589fd Remove unused variable 2020-04-08 17:29:47 -03:00
David Capello
be79b519ad Fix linker error when compiling without -O2 (e.g. debug mode) 2020-04-08 12:25:23 -03:00
David Capello
b628e21e76 Replace MIN/MAX() macros with std::min/max() functions 2020-04-08 12:20:53 -03:00
David Capello
86259a64fc Replace MID() macro with base::clamp() function
In the future we will replace base::clamp() with std::clamp().
2020-04-07 19:47:16 -03:00
David Capello
fd651c4189 Set alpha=255 if the current color is MaskType when picking colors from ColorSelectors
This is a little UI improvement: If we've just picked the mask color,
and click a color selector, generally we would like to use the opaque
version of that color (instead of the completely transparent version
of that color, alpha=0, which is an useless option).
2020-04-07 12:04:07 -03:00
David Capello
ed5deb9ca3 [lua] Add Dialog:color{ onchange } event 2020-04-07 11:25:58 -03:00
David Capello
4eefb84cf3 [lua] Add possibility to change dialog title with Dialog:modify{ title=... } 2020-04-07 11:14:06 -03:00
David Capello
bb8d0e7a6a [lua] Add possibility to modify a widget label and focus it 2020-04-07 11:13:30 -03:00