Commit Graph

5703 Commits

Author SHA1 Message Date
David Capello
913a32fbab Fix .ase specs
Don't use GitHub tables for the spec, they don't work for this kind of
documents. I've restored the old layout using just plain text to
describe chunks and fields.
2017-07-26 00:19:17 -03:00
David Capello
534458a2c1 Draw thumbnails inside cel box (item in #1271) 2017-07-25 15:22:14 -03:00
David Capello
b24fccb76a Preferences: Fix "Extension Themes" separator in "Extensions" section 2017-07-25 10:47:33 -03:00
David Capello
14ba0ab411 Add addition/subtract/divide blending modes
Changes:
* Added SeparatorInView() to add separators inside a ListBox or ComboBox.
* Added BlendModeItem() to represent each item in the blending modes
  ComboBox.
* Now a ComboBox can contain any kind of widgets as children (not just
  ListItem). This is required to add separators in the blending modes
  ComboBox.

Feature request:
https://community.aseprite.org/t/additive-blending-feature/121
2017-07-24 15:25:13 -03:00
David Capello
4f4b21a521 Copy dependencies from Platforms section to "Windows dependencies" section 2017-07-24 15:05:16 -03:00
David Capello
83e6f877f5 Put all blending function definitions in blend_funcs.h 2017-07-19 10:44:21 -03:00
David Capello
c06ce39357 Remove rgba/graya_blender_normal() without opacity 2017-07-19 10:33:01 -03:00
David Capello
fd408247cf Add some comments in rgba_blender_normal()
In this way we can see how we get the final blending formula which is
equivalent to Rc=(Sc*Sa + Bc*Ba*(1-Sa))/Ra
2017-07-18 23:33:54 -03:00
David Capello
b79512d3b4 Timeline: Fix bug painting marching ants ouside the cel bounds 2017-07-18 17:42:34 -03:00
David Capello
147f36077b Timeline: Redraw only marching ants on timer tick (fix #1537) 2017-07-18 17:07:35 -03:00
David Capello
dd3ce20133 Minor changes in rgba_blender_normal() function 2017-07-18 17:05:33 -03:00
David Capello
7cbf5fd420 Add some simple benchmarks for color blending functions 2017-07-18 17:03:12 -03:00
David Capello
85bd973834 Minor change to F4 behavior
Switch edit mode+color popup visibility based on the popup visibility only.
2017-07-04 14:09:50 -03:00
David Capello
cce73c4a75 Update hidden ColorPopup bounds correctly if the window is closed with the close button 2017-07-04 14:00:01 -03:00
David Capello
a519822a0e Fix ColorPopup hot region behavior after F4 is used 2017-07-04 13:58:14 -03:00
David Capello
905894c0ee Fix render_tests as now RGB checked bg makes alpha=255 2017-07-04 12:47:53 -03:00
David Capello
7504c6de08 Attach/detach wintab on WM_CREATE/WM_DESTROY messages
- Fixed call DestroyWindow() on ~WinWindow().
- Fixed usage of lparam on WM_CREATE as LPCREATESTRUCT
2017-07-04 12:47:00 -03:00
David Capello
14427e98af Possibility to associate keyboard shorcuts to clear/link/unlink cels 2017-07-04 08:17:47 -03:00
David Capello
2161604921 Fix warning icon behavior on edit mode (fix #1525) 2017-07-03 23:30:24 -03:00
David Capello
1b4ffdfbe9 Fix glitch rendering background with colors w/alpha = 0 2017-07-03 19:49:13 -03:00
David Capello
ab2fdb9a20 F4 shows fg color popup again
beta11 removed the palette editor but we still needed a way to show/hide the color popup.

Fix #1527
2017-07-03 17:41:10 -03:00
David Capello
4f5ce4bf57 Don't modify Params on const member functions 2017-07-03 17:31:56 -03:00
David Capello
b92907237e Fix regression using Ctrl+C, Ctrl+N, Enter, Ctrl+V
A common use case is copying a part of one sprite (Ctrl+C), creating a
new image with the clipboard size (Ctrl+N, Enter), and pasting the
clipboard (Ctrl+V). The pasted sprite must be inside the sprite bounds.

Bug report: https://community.aseprite.org/t/problem-pasting-clipboard-content-in-new-image-v1-2-beta10/108
2017-06-29 16:03:38 -03:00
David Capello
f329f8b50c Snap brushes on grid corners (#1465) 2017-06-29 15:57:44 -03:00
David Capello
7690cedcbe Improve snap to grid for line, ellipse, and rectangle (fix #1500) 2017-06-29 15:33:12 -03:00
David Capello
7072ecebe3 Avoid crash loading old themes without <style> information 2017-06-29 15:26:18 -03:00
David Capello
a92f476e3a Don't change color type when alpha slider is modified on ColorPopup
Bug reported here: https://twitter.com/chefkoch104/status/879664806864748544
2017-06-29 15:01:11 -03:00
David Capello
71b7ee12ec Don't show custom brush options on Gradient tool 2017-06-29 14:46:12 -03:00
David Capello
91c9cc29b0 Use fg/bg color alpha to modify custom brush alpha
Bug reported here: https://twitter.com/dovker/status/880137802142429184
2017-06-29 14:24:53 -03:00
David Capello
cc8337fa84 Fix User-Agent on Linux to include the distribution name/version 2017-06-29 13:03:28 -03:00
David Capello
55637693dd Add X key to switch colors in Replace Color dialog (fix #1430)
Requested here too:
https://community.aseprite.org/t/swap-foreground-and-background-colors-quickly-with-button/114
2017-06-29 11:43:21 -03:00
David Capello
496e396d4f Fixed issue using Ctrl+Shift to move a cel when we have Pencil tool selected
Bug report: https://community.aseprite.org/t/problem-with-a-move-tool/101
2017-06-28 17:45:13 -03:00
David Capello
052e2faac3 Don't depend on bcrypt.dll on Windows (fix #1520) 2017-06-28 17:24:17 -03:00
David Capello
f02ad4a71c Fix crash removing layer when some of its cel has autoguides 2017-06-28 17:20:08 -03:00
David Capello
1a65f21f72 Disable lzma in libarchive 2017-06-24 13:44:25 -03:00
David Capello
72c1f9b765 Current theme can be uninstalled (so we can upgrade it)
Only the default theme cannot be uninstalled.
2017-06-23 15:19:00 -03:00
David Capello
08c70cc6ab Show all frame tags on "Go to frame" by default 2017-06-23 15:15:17 -03:00
David Capello
7156c4ae98 Fix user extensions path on Windows 2017-06-23 15:09:41 -03:00
David Capello
329e556127 Change size hint for color sliders for a better Hue/Saturation dialog default size 2017-06-23 12:24:01 -03:00
David Capello
690d3f5a5e Avoid std::find() for each pixel on HueSaturation for RGB images 2017-06-23 12:17:07 -03:00
David Capello
59c7f7dcec Support hue/saturation adjustments on color palettes of RGBA sprites 2017-06-23 10:39:53 -03:00
David Capello
d0635c3c0b Fix construction of json11::Json object
Don't call Json() ctor directly (gcc error)
2017-06-23 10:29:24 -03:00
David Capello
5d2ed8ce4b Update tooltips when keyboard shortcuts are modified
This was implemented only for ContextBar and ColorBar at the moment.
2017-06-23 10:16:37 -03:00
David Capello
5224c98b9a Disable palette edit mode for grayscale sprites 2017-06-23 09:35:44 -03:00
David Capello
2c3c7d7c0b Add some tooltips to context bar
This should be automatic, but that is for a future version.

Request:
https://community.aseprite.org/t/show-keyboard-shortcuts-on-every-context-bar-tooltip-element/56
2017-06-23 09:02:59 -03:00
David Capello
81ccbee4a2 Safer method to delete installed extension files through __info.json 2017-06-23 08:29:21 -03:00
David Capello
4ccecdeda2 Show alert when we upgrade an existent extension 2017-06-23 07:53:31 -03:00
David Capello
19f6dcfc58 Don't alter pasted image position if it's off canvas (fix #1447)
Now we limit only one pixel inside the sprite bounds.
2017-06-23 07:01:12 -03:00
David Capello
5e24be7ef7 Limit X/Y pasted position separately by axis (#1447)
Use case:
https://github.com/aseprite/aseprite/issues/1447#issuecomment-310582226
2017-06-23 06:29:36 -03:00
David Capello
ab39ec63a8 Minor change in algo_line() comment 2017-06-23 06:18:08 -03:00