Commit Graph

6136 Commits

Author SHA1 Message Date
David Capello
4d885b5b8a Use old render engine when there are visible ref layers in zoom > 100% 2018-06-28 16:56:35 -03:00
David Capello
598f69d2e0 Create all intermediate directories required for --save-as (fix #1492) 2018-06-28 15:44:59 -03:00
David Capello
aec65faa2b Add DOC_SPRITE_MAX_WIDTH/HEIGHT constants 2018-06-28 13:53:38 -03:00
David Capello
f595ceea7f Add possibility to write math expression in number textboxes (fix #1762) 2018-06-28 13:33:13 -03:00
David Capello
aa8d4dfc11 macOS: Fix bug re-assigning default keyboard shortcuts to other native menus
I've found this bug re-assigning Cmd+E shortcut to File > Export,
after restarting Aseprite, Cmd+E will still execute the default
action (File > Export Sprite Sheet), and the only way to fix this was
opening "Edit > Keyboard Shortcuts" and closing the file (which will
call AppMenus::instance()->syncNativeMenuItemKeyShortcuts()).

Now if we create native menus after loading user defined keyboard
shortcuts, the native menus will contain the correct keyboard
shortcuts from the very beginning.
2018-06-27 11:32:24 -03:00
David Capello
51ce52981a Improve UX in File > Export in special cases for output filename extension
* When the extension is unknown, an error is shown.
* When the extension is not written, the default extension will
  be added (the default extension is different depending on
  if the file format is image format or an animation format).
2018-06-27 10:00:19 -03:00
David Capello
49106817d4 Undo resize operation correctly in File > Export w/Resize != 100% and without undo history
If we open a new image (there is no undo history) and use File > Export
with a Resize parameter, the resize command must be undone, but the
UndoState to return will be nullptr (nullptr is before the first UndoState,
which is the resize operation for the export operation). So without this
fix we just resize and cannot go back before the resize.

This regression was introduced in a4d1833a9c
2018-06-26 10:56:41 -03:00
David Capello
b015fee8e0 Add a semi-transparent pixel (alpha=254) when export png for Twitter 2018-06-25 15:58:28 -03:00
David Capello
56ec9f113c Avoid crash if the theme package doesn't contain a sheet.png file 2018-06-25 14:05:57 -03:00
David Capello
58b9dfed11 Merge branch 'master' 2018-06-22 16:22:06 -03:00
David Capello
33369c0a5f Add a fast path for RGBA images to convert_image_to_surface()
Most common case in Aseprite where we convert
a IMAGE_RGB doc::Image into a 32bpp she::Surface
and all RGBA masks/shifts match.
2018-06-22 15:56:50 -03:00
David Capello
511752fea7 New render engine to use bicubic interpolation when zoom < %100 (fix #1671)
This only works with Skia back-end.
2018-06-22 15:41:22 -03:00
David Capello
d1338fbe54
Merge pull request #1761 from Gasparoken/fix-duplicate-cel-ignores-collapsed-layer-groups
Fix Duplicate Cels ignores collapsed layer groups (fix #1727)
2018-06-21 17:17:12 -03:00
Gaspar Capello
2b177601b5 Fix Duplicate Cels ignores collapsed layer groups (fix #1727) 2018-06-21 14:37:52 -03:00
David Capello
e06735a4c0 Move EditorPreRender code to EditorPostRender
This simplify Editor::drawOneSpriteUnclippedRect() impl to create an
alternative version of the renderer in the future.
2018-06-21 12:58:11 -03:00
David Capello
c3e233f34d Create EditorRender to merge shared render image buffer and AppRender 2018-06-19 23:25:31 -03:00
David Capello
a5b0c7ebdd
Merge pull request #1750 from DexterIV/master
Fix "Sprite>Rotate Canvas > 90" not working on empty canvas (fix #1711)
2018-06-19 15:41:21 -03:00
David Capello
ddff5d559c Keep focus of layer name when right-click a layer > Properties (fix #1466) 2018-06-19 15:25:49 -03:00
David Capello
9323194cd9 Add a flag to disable warnings for about.xml 2018-06-19 14:49:40 -03:00
David Capello
e82404e3ba Don't jump inside "Loop" tag w/next/previous frame within tag when we are outside the tag (fix #1756) 2018-06-19 14:35:00 -03:00
David Capello
a0c0b1c8e2 Add option to disable Wintab from Preferences dialog
With this is easier to give support to the end-user. The
--disable-wintab option was initially added for crash situation when
the user cannot execute Aseprite from the very beginning, but in other
situations, when Aseprite can be executed correctly but the stylus
doesn't work as expected, it's nice to have this option available from
the UI just to disable the Wintab32.dll.
2018-06-19 14:10:19 -03:00
David Capello
790705937f Fix compilation error in non-Windows platforms 2018-06-19 13:50:23 -03:00
David Capello
8b44411f87 Update website links 2018-06-19 11:05:40 -03:00
David Capello
5d763d108c Win8/10: Add support to draw with one finger, pan/scroll with two
https://community.aseprite.org/t/using-touchscreen-computers-to-draw-in-aseprite/677
2018-06-19 10:59:12 -03:00
David Capello
650c4eeeaa Update About dialog, Ilija has just updated his website 2018-06-18 10:06:52 -03:00
David Capello
eeacba9e38 Fix compilation error on msvc (fix #1752) 2018-06-17 21:27:16 -03:00
David Capello
ecf4e8a5ff Update CONTRIBUTING file 2018-06-17 20:23:55 -03:00
DexterIV
9e6940e16e
Fix Sprite>Rotate Canvas > 90 not working on empty canvas (fix #1711) 2018-06-15 15:40:10 +02:00
David Capello
a4d1833a9c Fix Export with resize + non-linear undo history (fix #1749) 2018-06-14 17:27:22 -03:00
David Capello
15d517c42f Merge branch 'tests' 2018-06-14 16:27:19 -03:00
David Capello
40c55e1322 Update About dialog and authors/credits in README file 2018-06-14 16:16:50 -03:00
David Capello
d2a8fb97d8 Update mujs module 2018-06-14 16:06:04 -03:00
David Capello
cca840c59c Add new tests for CLI/API/sprites 2018-06-14 14:05:36 -03:00
David Capello
8401f8f5de Add FS_TRACE() in file_system.pp 2018-06-14 11:21:18 -03:00
David Capello
e8b3751a88 Minor change in CODING_STYLE.md header 2018-06-13 17:22:46 -03:00
David Capello
23cc4ea6a7 Add Rosy-42 palette by PineTreePizza 2018-06-13 17:21:39 -03:00
David Capello
67a61fd3d6 Avoid saving backups when we are in the middle of a File > Export with Resize 2018-06-13 16:00:37 -03:00
David Capello
b321a75b5b New Timeline UI to move frames inside or outside tags (fix #1656) 2018-06-12 17:11:10 -03:00
David Capello
627ef49716 Fix bug adding an extra empty frame after removing all frames and undoing 2018-06-11 11:51:11 -03:00
David Capello
339183c9df Shift+click on cels will select multiple frames/layers
At the moments this doesn't select multiple cel ranges (as in #1510),
it will select the the layer and the frame, but it's good enough for a
first version (just to jump between current layer/frames in the
current selected range).
2018-06-11 08:34:20 -03:00
David Capello
bd66661d88 Update webp to v1.0.0 2018-06-09 14:58:00 -03:00
David Capello
850bf76bf5 Update libwebp module 2018-06-09 13:04:56 -03:00
David Capello
fb450de9c9 Update laf and benchmark modules 2018-06-09 13:04:16 -03:00
David Capello
8042bbb60d Add Alt+click on timeline to hide all layers except the clicked one
https://community.aseprite.org/t/turn-off-all-other-layers/151
2018-06-08 17:57:58 -03:00
David Capello
b8c5ad074a Support switching several eyes/padlocks on timeline dragging the mouse (fix #1592) 2018-06-08 16:54:08 -03:00
David Capello
97d74e0e80 Fix webp_format.cpp compilation problem introduced in e025d1a40a 2018-06-08 16:43:08 -03:00
David Capello
744e40b4b7 Show full animation length/tag length on status bar (fix #1528) 2018-06-08 16:41:24 -03:00
David Capello
835941a6d6 Rename C++ style guides to CODING_STYLE.md file 2018-06-08 16:24:11 -03:00
David Capello
e025d1a40a Improve widget class generator including only required .h files
Instead of including "ui/ui.h" we can include the specific header file
for the used widgets in the .xml widget.
2018-06-08 15:52:10 -03:00
David Capello
7d96968ac3 Use BoolPrefWidget for alert options in Preferences dialog 2018-06-08 15:25:08 -03:00