Commit Graph

8114 Commits

Author SHA1 Message Date
Joshua Ogunyinka
33d0187dab Continue playing the same tag in the Preview window after switching sprites (fix #2797) 2021-08-26 08:54:29 -03:00
Martín Capello
bbec09c752 Fix typo in CMakeLists.txt file 2021-08-24 11:14:53 -03:00
David Capello
54a6ef5eb7 Merge branch 'main' into beta 2021-08-23 14:09:44 -03:00
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
1a7c381c5e Revert "Allow dragging mouse up/down to change zoom too"
This reverts commit 2c82e19669.

Given the feedback from the following posts, we've decided to revert
this change at the moment:
* https://steamcommunity.com/app/431730/discussions/2/3059617763567133029/
* https://github.com/aseprite/aseprite/issues/2767
2021-08-20 16:32:45 -03:00
David Capello
60db582932 Merge branch 'main' into beta 2021-08-20 14:49:43 -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
4e11d45769 Fix crash switching from a tilemap to a regular layer in tile mode & the preview window opened (fix #2854) 2021-08-19 20:31:23 -03:00
David Capello
c46927dce6 Save/restore window size of the file selector (fix #2756 in some way) 2021-08-19 11:51:21 -03:00
David Capello
7f56db58b7 Restore ui::Window bounds correctly after loading its lastNativeFrame()
Without this fix windows were missing a last re-layout/setBounds to
the new frame size, so they showed up with an incorrect size given the
available area of the native window.
2021-08-19 11:47:17 -03:00
David Capello
a5b41d2630 Merge branch 'main' into beta 2021-08-19 10:34:32 -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
74e9a73f48 Merge branch 'main' into beta 2021-08-13 14:49:18 -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
David Capello
8b5d7be104 Add support to move the Preview window with a styles/pen on Windows
Fix part of https://github.com/aseprite/aseprite/issues/2783
2021-08-12 16:25:20 -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
David Capello
ecbd13caf3 Use transparent windows for tooltips & popups like toolbar (fix #2764) 2021-07-30 16:14:38 -03: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
Gaspar Capello
10a5694e6e Fix regression saving certain GIF files when disposing frames (fix #2806)
Before this fix, when some aseprite file with transparents pixels was
converted to GIF, each frame didn't overwrite correctly the previous
frame (image disposal was incorretly chosen: DO_NOT_DISPOSE instead of
RESTORE_BGCOLOR).
2021-07-12 11:00:54 -03:00
David Capello
22a5c4c324 Merge branch 'main' into beta 2021-07-09 10:47:16 -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
7a3fb9c2ac Fix running UI tests on beta branch 2021-07-05 19:48:17 -03:00
David Capello
9ee6f99588 Merge branch 'main' into beta 2021-07-05 19:43:55 -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
12aef12ed1 Merge branch 'main' into beta 2021-07-05 18:45:00 -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
1d1982d312 Merge branch 'main' into beta 2021-07-01 11:50:55 -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
66e77a7e49 Merge branch 'main' into beta 2021-06-29 21:15:57 -03:00
David Capello
69446cf335 Minor changes for 927215629d to avoid offsets and use grids
Related to #2741
2021-06-29 21:14:12 -03:00
Martín Capello
927215629d Fix pixel perfect behavior in tilemap layer when cel origin or cel position is different than (0,0) (fix #2741) 2021-06-29 21:07:22 -03:00
David Capello
5873a64abd Minor changes in IntertwineAsPixelPerfect 2021-06-29 20:26:37 -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
3f778b0ec2 Merge branch 'main' into beta 2021-06-28 20:08:26 -03:00
David Capello
6ad0f59e7f Update laf module 2021-06-28 19:56:25 -03:00