Commit Graph

7479 Commits

Author SHA1 Message Date
David Capello
d3d30ed851 Merge branch 'improve-save-performance-fseek' 2021-08-23 12:33:20 -03:00
jestarray
59e01493cb Added Duration to filename formatter 2021-08-23 11:50:28 -03:00
David Capello
4981f05f0b Fix color of the central little pixel of the crosshair 2021-08-20 20:11:51 -03:00
David Capello
95e6b5ddd6 Update .aseprite file specs with v1.3 updates 2021-08-20 14:48:01 -03:00
David Capello
f2fb2791a0 Fix crash changing screen/UI scaling (fix #2830) 2021-08-20 14:38:45 -03:00
David Capello
2fa47b59c9 Center the "open sequence" dialog correctly when it's showed from a file specified in the CLI (fix #2899) 2021-08-18 15:36:15 -03:00
David Capello
1e98a65859 Minor change in ui::Manager::run() 2021-08-18 15:34:05 -03:00
David Capello
341408e902 Don't crash when saving palettes to .jpg format (fix #2654)
Now .jpg is not even show in the list of available format to save
palettes (same for other file format that don't support indexed color
mode).
2021-08-18 13:03:38 -03:00
David Capello
5ecebff375 Don't name any specific Windows SDK version (fix #2886) 2021-08-14 12:02:59 -03:00
David Capello
078ba588a7 Update laf submodule 2021-08-13 13:10:07 -03:00
Martín Capello
1eb740482e Update last row and column of pixels in the editor's viewport when the sprite is zoomed in and the color mode or FX dialog are used. (also fix #2803) 2021-08-13 11:11:55 -03:00
Alex Marcolina
54fddf7cc3 Replace fseek with putl/w to reduce io flushes
ase_file_write_start_chunk needs to skip forward the size of the chunk header, as these values will be written in later.  Using fseek was causing performance issues on my Windows machine due to causing an io flush on every chunk, for projects with many (thousands) of chunks.  Replacing with the equivalent put commands in ase_file_write_close_chunk results in ~100x speedup.
2021-08-01 20:44:15 -07:00
Martín Capello
fc79146c56 Fix crash when pressing ESC while moving a selection (fix #2829) 2021-07-16 11:24:49 -03:00
Martín Capello
0145458686 Git-ignore .vs directory 2021-07-16 11:24:37 -03:00
David Capello
5a6bd465f5 Cache mouse cursors to avoid re-generating them on each setCursor()
This should improve the mouse movement, where a new mouse cursor was
created on each mouse movement with black & white pixels. It's a
regression introduced in ef4f691459
(which was originally introduced to improve the mouse movement
perception in a 100Hz monitor).

This might be a possible fix for:
https://github.com/aseprite/aseprite/issues/2713
2021-07-09 10:21:16 -03:00
David Capello
8f838ba36d Backport FullscreenMode command (#464)
Original from ae02600a63
2021-07-05 20:11:46 -03:00
David Capello
8c0215dd06 Fix UI tests 2021-07-05 19:42:32 -03:00
David Capello
95df0b23d3 Show main os::Window on the first flipDisplay() 2021-07-05 19:42:04 -03:00
David Capello
4a5a3a7bc4 Fix compilation when ENABLE_DEVMODE is defined 2021-07-05 19:41:51 -03:00
David Capello
c42c5e1453 Backport new laf API to main branch of aseprite
Some features from the beta branch of aseprite & laf were backported
to the main branch of aseprite.

Related commits:
- New memory handling (db4504e816)
- New get event with timeout (e6ec13cc31)
- Convert os::NativeCursor to an enum (06a5b4f3ae)
- Adapt code to the new os::Display -> os::Window refactor (5d31314cdb)
- Save/load main window layout correctly and limit to current workarea (d6acb9e20f)
- Redraw window immediately on "live resizing" (d0b39ebade)
2021-07-05 17:51:29 -03:00
David Capello
6b2c296ef0 Update giflib module to the latest version 2021-07-01 11:38:13 -03:00
David Capello
ffe65bface Detect webp files by file content (fix #2807) 2021-07-01 11:37:11 -03:00
David Capello
f99b5218b9 Remove unused code from ReplaceColor command
The original intention was to save selected colors in the Replace
Color dialog so then showing up it again would restore those saved
color. But it never worked in that way and just by mistake it was
using the Foreground/Background pair of colors by default (which is
the desidered behavior now). So we are just removing the buggy code
that never worked. (Related to #2028 in some way.)
2021-06-29 16:31:51 -03:00
David Capello
e73d96262d Always use Foreground color in Select > Color Range (fix #2028) 2021-06-29 16:26:48 -03:00
David Capello
78abaf0292 Minor change in MaskColor add ConfigSection constant 2021-06-29 16:23:56 -03:00
David Capello
9609d2c827 Fix crash if we press F5/reload menus when we have a menu open (fix #2496) 2021-06-28 21:13:56 -03:00
David Capello
6ad0f59e7f Update laf module 2021-06-28 19:56:25 -03:00
David Capello
ee7a1a1ed6 Add CompanyName field to Win32 resources file (fix #2801) 2021-06-28 12:04:56 -03:00
David Capello
cf88a36fbd Update laf module 2021-06-24 18:57:53 -03:00
David Capello
64d530cdb4
Merge pull request #2760 from xcession/typo
Correct macOS 10.15 name
2021-06-23 09:11:08 -03:00
David Capello
62f4f4e0ca Merge pull request #2781 from opfez/patch-1 2021-06-23 09:06:24 -03:00
David Capello
6157b004e4 Fix possible memory leak setting invalid preference when loading a BoolPrefWidget from an XML file
Reported in #2782
2021-06-23 08:54:26 -03:00
David Capello
89f8e6f275 Fix possible/low chance to happen memory leak
Reported in PR #2782
2021-06-23 08:41:06 -03:00
David Capello
8ee8bd0ec7 Update laf module 2021-06-22 16:11:19 -03:00
David Capello
da9a3bbff2 Add PULL_REQUEST_TEMPLATE file 2021-06-22 16:11:00 -03:00
opfez
bc3ccfe23f
Add Arch Linux dependencies 2021-06-20 11:25:52 +02:00
David Capello
0d77a54168 Update libarchive module 2021-06-17 16:32:59 -03:00
David Capello
7c4fbc7b53 Update libpng module 2021-06-17 11:06:58 -03:00
David Capello
567a58f57d [lua] Add conditional usage of system() function through HAVE_SYSTEM 2021-06-17 10:59:13 -03:00
David Capello
1482d6d5a7 Update libarchive module 2021-06-17 10:46:15 -03:00
David Capello
8dc5861435 Disable more libarchive utilities 2021-06-17 10:45:36 -03:00
David Capello
97ef3bf9c3 Don't build cmark program 2021-06-17 10:44:22 -03:00
David Capello
11e4243d05 Add ${main_target} to reference "aseprite" target 2021-06-16 17:22:31 -03:00
David Capello
74170c14fa Add ${DATA_OUTPUT_DIR} to src/CMakeLists.txt 2021-06-16 17:21:34 -03:00
David Capello
5d97aed5e9 Use new laf flags to detect platform in main and App 2021-06-16 17:21:02 -03:00
David Capello
61952bc45f Fix compilation of src/app/file_system.cpp in non-Windows platforms 2021-06-16 09:46:00 -03:00
David Capello
92c5222aa7 Use base::ComPtr in the FileSystemModule 2021-06-15 18:23:49 -03:00
David Capello
5f00e6f96a Fix possible crashes on UI menu bar/box logic (fix #2771)
We weren't able to reproduce the crash, but these checks will prevent
the crash itself. (So in the future if we receive a related report, it
will be because something is not working correctly in the menus, but
not a crash report.)
2021-06-15 15:14:17 -03:00
David Capello
37d2b62250 Convert MenuBaseData pointer to std::unique_ptr 2021-06-15 14:35:48 -03:00
Gaspar Capello
1eace24891 Improve aspect of ellipses for 16x16 or bigger sizes (fix #2217)
Now algo_ellipse() function supports additional parameters to create
rounded squares in the future.
2021-06-11 14:47:23 -03:00