Commit Graph

4304 Commits

Author SHA1 Message Date
David Capello
68fa996cc6 Move ui_scale option from experimental to general 2016-09-09 09:46:10 -03:00
David Capello
75894073d4 Make fg/bg color selector dialogs resizable (fix #1250) 2016-09-08 19:48:29 -03:00
David Capello
bd219ada10 Hide fg/bg color selector dialogs when we are not viewing a document 2016-09-08 16:53:11 -03:00
David Capello
4119962ee6 Remove Widget::onDisable/onDeselect() member functions
Replaced with an argument in onEnable/onSelect().
2016-09-08 15:53:10 -03:00
David Capello
1f81e9f8d1 Remove bool return type from PopupWindowPin::showPin() 2016-09-08 15:42:25 -03:00
David Capello
efe31b02d9 Save fg/bg color selector dialog positions between sessions (fix #1249) 2016-09-08 15:34:09 -03:00
David Capello
92db283cbc Show pin only in fg/bg color selector dialogs 2016-09-08 15:31:22 -03:00
David Capello
76fefe64f2 Fix several issues dropping pixels in MovingPixelState (fix #1241) 2016-09-07 10:40:32 -03:00
David Capello
5a55a9e276 Add support to load/save palettes from/to a list of hex values (.hex files) 2016-09-07 09:19:40 -03:00
David Capello
18f9d2478f Fix cryptic error message using "Repeat Last Export" in some special cases (fix #1247)
We cannot use the sprite sheet type to know if the last export was
already done/defined by the user for a new sprite. We need a special
field to indicate if the export was done and we can repeat it last
export with the same configuration.
2016-09-06 22:07:57 -03:00
David Capello
1c88af5689 Fix tags information when empty frames are removed (fix #1244) 2016-09-06 12:06:00 -03:00
David Capello
6e5d312bdf Fix scrolling bug at the bottom of palette list the first time it popups 2016-09-05 13:02:52 -03:00
David Capello
bebbd71d31 Add simple crosshair using native mouse cursors (fix #1236) 2016-08-31 13:24:03 -03:00
David Capello
891e660355 Fix hotspot for scaled native custom cursors 2016-08-31 12:34:06 -03:00
David Capello
f1f6d0745d Fix crash in UI tests 2016-08-30 18:20:28 -03:00
David Capello
f1c9e77e43 Add mouse cursor scale option 2016-08-30 17:27:19 -03:00
David Capello
b80beb13ad Move native cursor preference from "Experimental" to "Cursors" section 2016-08-30 16:52:03 -03:00
David Capello
162cee2870 Use custom native mouse cursor on Skia/OSX port 2016-08-30 16:12:11 -03:00
David Capello
507e0f152b Use custom native cursors on Skia/Win port 2016-08-30 13:50:45 -03:00
David Capello
05e6147a1f Fix compilation error for old libpng versions 2016-08-30 12:26:30 -03:00
David Capello
b40e942aed Don't check sRGB profiles with libpng 2016-08-29 18:24:03 -03:00
David Capello
65a2d9a4ba Update clip library 2016-08-29 18:23:50 -03:00
David Capello
5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello
03be4aa23d Convert "bool" members in ui::Widget to flags 2016-08-29 12:23:23 -03:00
David Capello
4c1a57f651 Include menus when we search for keyboard shortcuts 2016-08-19 14:27:45 -03:00
David Capello
3813b9bf1e OS X: Fix right-click on Wacom Intuos tablet
This problem might be related to a specific Wacom driver version
for OS X where right-click buttons are reported like NSRightMouse*
events but with their [NSEvent buttonNumber] property set to 0
(instead of 1 to indicate a right-click).
2016-08-17 18:21:41 -03:00
David Capello
0f2d0cbcd0 Fix invalid selection after removing frames (fix #1235) 2016-08-17 17:05:46 -03:00
David Capello
9c97f6c329 Update clip module 2016-08-14 21:22:21 -03:00
David Capello
d7f2155adb Show popup menu on "Play" buttons with Ctrl+click 2016-08-13 13:35:35 -03:00
David Capello
dc1bc964ce Change memset/memcpy with std::fill/copy in ImageImpl 2016-08-03 16:58:58 -03:00
David Capello
01e8e99fcb Add tests for Image::fillRect 2016-08-03 16:32:06 -03:00
David Capello
95da89b067 Update src/README.md items 2016-08-01 10:29:21 -03:00
David Capello
5ea955df4d Convert undo library into a submodule 2016-08-01 10:20:26 -03:00
David Capello
45fcd9e95e Fix typo (minor change) 2016-07-31 20:36:18 -03:00
David Capello
3b5915a21a Update version to v1.1.8-dev 2016-07-31 20:25:01 -03:00
David Capello
000ac2e894 Update FLIC library 2016-07-26 10:24:41 -03:00
David Capello
d89d386185 Update version to 1.1.7-dev 2016-07-25 12:32:04 -03:00
David Capello
97d42de696 Improve image resize algorithm
It might be a possible fix for #502
2016-07-25 12:15:42 -03:00
David Capello
d06e1cf009 Replace App::Exit slot with a base::UniquePtr 2016-07-25 11:47:33 -03:00
David Capello
0c6802cd30 Use grid bounds by default in Import Sprite Sheet (fix #1207) 2016-07-25 11:30:33 -03:00
David Capello
5910e94396 Add option to hide full filename paths (fix #1199) 2016-07-25 11:04:16 -03:00
David Capello
7849b8804d Remove unnecessary "inline" keyword 2016-07-22 20:48:24 -03:00
David Capello
4ef9626689 Fix crash when resizing a sprite and there is not enough memory
This patch fixes crashes in background jobs that generate any kind of
exception.
2016-07-22 20:46:29 -03:00
David Capello
2893f98fbd Merge pull request #1204 from pseudogames/pixly3
Fix assert() in pixly encoder/decoder
2016-07-22 12:00:37 -03:00
David Capello
67c9cc54d9 Update clip module 2016-07-21 14:15:11 -03:00
David Capello
d4b0753106 Fix theme UI to show user themes and official themes correctly 2016-07-20 19:03:51 -03:00
Carlo 'zED' Caputo
01dc3e70f7 pixly: fixed assert failure 2016-07-15 17:23:11 -03:00
David Capello
45e3573e67 Merge branch 'new-skia' 2016-07-13 17:01:36 -03:00
David Capello
5dfda3b0f0 Reduce the updated region on OS X (related to #1170) 2016-07-12 17:23:28 -03:00
David Capello
5640277ff7 Don't show checkbox to enable GPU yet 2016-07-12 17:23:05 -03:00
David Capello
8e7b700c35 Update skia to chrome/m53 2016-07-12 13:23:24 -03:00
David Capello
9c73841970 Move gfx::Transformation to app::Transformation
In this way gfx library doesn't depend on fixmath.
2016-07-11 15:40:27 -03:00
David Capello
691ff2c08a Fix she/CMakeLists.txt to link with skia with GPU 2016-07-11 12:30:09 -03:00
Carlo "zED" Caputo
b0385d437f Use load/save_document() in .anim decoder/encoder to load/save .png files (#1189)
* add todo items
* load_document instead of png load
* save using save_document (need more tests)
* trimmed and empty cels
* linking neighbor cels with the same image
* count_diff, exception, checks and style
2016-07-11 10:12:25 -03:00
David Capello
991b248940 Don't swap same frame on reverse_frames() 2016-07-11 09:58:43 -03:00
David Capello
92084fe14a Expand filename wildcards in command line on Windows (fix #1049) 2016-07-06 15:20:55 -03:00
David Capello
0722d95b5d Migrate configuration files on OS X to ~/Library/Application Support/Aseprite (fix #1165) 2016-07-06 12:22:40 -03:00
David Capello
d91ca36edd Add forward compatibility in .ase decoder for layer groups
As v1.2 can save .ase files with groups, we have added support to make
flat the file and move all layers to the top level, removing all
groups. (Just in case the user want to go back to v1.1 after using v1.2
features.)
2016-07-05 18:17:16 -03:00
David Capello
f9dfe347b1 Remove features that aren't supported in .anim format 2016-07-05 11:52:58 -03:00
David Capello
3a8c90e952 Remove unused variable 2016-07-05 11:52:44 -03:00
David Capello
71d2a2e2e7 Minor changes in some comments 2016-07-05 11:44:58 -03:00
Carlo 'zED' Caputo
99bd10dfbd pixly: dealing with cels smaller than the sprite 2016-07-05 11:31:56 -03:00
David Capello
51a0bbe6a4 Fix OS X cmd/alt key modifiers status when app is reactivated 2016-07-04 14:14:57 -03:00
Carlo "zED" Caputo
7b4a1ec4af Add support for Pixly file format (#1177)
New Pixly .anim format decoder/encoder based on png decoder/encoder.
2016-07-04 12:06:27 -03:00
David Capello
71321dfc82 Fix 'outline' convolution matrices for rendered text
This issue was originally reported here:
https://twitter.com/vine2D/status/748579114265653248/
2016-07-01 19:07:01 -03:00
David Capello
d566604205 Fix several bugs applying filters to cels smaller than the sprite bounds
Now if we apply a 3x3 (or bigger) convolution matrix to a cel, the cel
will be expanded to so new pixels are included in the new cel content.
2016-07-01 18:49:58 -03:00
David Capello
b13ac1d340 Add crop_image() with a gfx::Rect 2016-07-01 18:42:10 -03:00
David Capello
3df6572170 We can return a const& in Cel::position() 2016-07-01 18:41:26 -03:00
David Capello
c1f8c98ca8 Minor changes in FilterManagerImpl 2016-07-01 17:02:47 -03:00
David Capello
1c984696c1 Select active color bar selection when we change to shading ink 2016-07-01 16:24:29 -03:00
David Capello
ec15ec7bb2 Fix Alt+mouse wheel to navigate color indexes in RGB images/colors (fix #1153) 2016-07-01 13:18:33 -03:00
David Capello
9748894a26 Don't use brush edges on tools with "one pixel" point shape (fix #1167) 2016-07-01 12:55:29 -03:00
David Capello
b094f6e557 Fix crashes in keyboard shortcuts by incorrect signals lifetime handling 2016-07-01 12:50:47 -03:00
David Capello
a214b4abfc Update observable library 2016-07-01 12:50:31 -03:00
David Capello
485649a2da Activate app explicitly on OS X on debug mode 2016-07-01 11:21:40 -03:00
David Capello
9897256d26 Don't trim background layer cels automatically (fix #1166) 2016-07-01 11:14:50 -03:00
David Capello
67ce9473f8 Add option to include partial tiles in Import Sprite Sheet (fix #1161) 2016-07-01 10:24:44 -03:00
David Capello
ee1dac0893 Right-click subtract selection again on floating pixels (fix #1164) 2016-07-01 10:07:55 -03:00
David Capello
8ee743c92a Improve Timeline UI to move ranges with right-click
Now we can popup menus with right-click and move ranges with
right-click. Also, as this commit adds support to right-click with
Ctrl+left click on OS X, we can have full control of the Timeline using
a Mac trackpad.
2016-06-29 19:10:05 -03:00
David Capello
f5c43267fc Add support to right-click with Ctrl+left click on OS X (fix #438)
This is only for Tabs and Entry widgets at the moment.
2016-06-29 18:52:09 -03:00
David Capello
262bc0f16e Improve UI response when we clone tabs with Ctrl or Alt 2016-06-29 12:02:41 -03:00
David Capello
9e6d7632d9 Minor Render improvement
We can return the specific function to composite images depending on the
actual zoom level. In this commit I include a new
composite_image_without_scale() to completely ignore the zoom level when
it's possible.
2016-06-29 10:01:14 -03:00
David Capello
da128d3a6e Replace signals/slots impl with the observable library 2016-06-28 17:22:23 -03:00
David Capello
bfb65c3d96 Add needed <vector> in input_chain.h 2016-06-28 10:22:56 -03:00
David Capello
73843ea564 Add base::this_thread::native_handle() function 2016-06-28 10:22:32 -03:00
David Capello
e1828ca6f3 Call std::abort() on base_assert() so it acts like a breakpoint 2016-06-28 10:15:44 -03:00
David Capello
67968b0211 Improve base_assert() message so we quickly can find the file:line 2016-06-28 10:14:56 -03:00
David Capello
a9cea5ab42 Update mouse cursor immediately after we change it to native mouse cursor 2016-06-14 09:36:50 -03:00
David Capello
e353cdae4c Merge branch 'applyButton' of https://github.com/TheKK/aseprite into apply-button 2016-06-14 09:23:26 -03:00
David Capello
893f757eea Don't ignore Space bar on sprite editor when Timeline range is enabled (fix #877) 2016-06-13 11:55:16 -03:00
David Capello
165d3af112 Ask to save each file when we're quitting 2016-06-08 13:29:17 -03:00
David Capello
5456b5950d Activate app on OS X when Aseprite is launched from Steam
It looks like a Steam clien bug on OS X, it activates Aseprite window,
and then Steam is activated again, so the Aseprite window lost the focus
and is left below the Steam window.
2016-06-07 14:47:59 -03:00
David Capello
aa6040e2e4 Don't activate our app ignoring other apps on OS X 2016-06-07 10:23:45 -03:00
David Capello
915fac0d23 Don't show system cursor on OS X in the first mouseEntered 2016-06-07 10:03:57 -03:00
David Capello
b4588d34f4 Merge 'master' branch 2016-06-02 13:05:53 -03:00
David Capello
a4827a3727 Add possibility to change between tags while playing
From:
https://twitter.com/_theMatteBlack/status/735185628107804672
2016-05-27 13:45:12 -03:00
David Capello
34b8be3114 Fix status bar values when we move pixels 2016-05-27 13:22:25 -03:00
David Capello
af2c2838e0 Add new option to zoom sliding two fingers on OS X trackpad
It was requested here:
http://steamcommunity.com/app/431730/discussions/2/357286663677659387/
2016-05-27 13:15:13 -03:00
David Capello
a9cc61ee49 Merge pull request #1140 from Mailaender/patch-2
Fixed a serious compiler warning
2016-05-24 16:03:00 -03:00
David Capello
a1a60dcaf4 duktape depends on math library (fix #1139) 2016-05-24 12:54:09 -03:00
David Capello
720bd349e3 Add some asserts in CopyCel to find the cause of a possible crash 2016-05-24 11:16:03 -03:00
Matthias Mailänder
873748b0ff Fix freetype2 includes. 2016-05-22 07:23:01 +02:00
Matthias Mailänder
5e62983251 Fix a serious compiler warning
Program returns random data in a function
2016-05-21 19:41:43 +02:00
David Capello
d371352526 Enable Edit > Copy anyway if layer is locked/non-editable 2016-05-19 13:22:58 -03:00
David Capello
47f4cb1313 Enable Edit > Copy Merged only when there is a visible selection
This fix a crash using copy merged when there is no selection.
2016-05-19 13:19:02 -03:00
David Capello
b21f5df2d6 Fix arrow keys to move a rotated selection (fix #775) 2016-05-18 14:26:25 -03:00
David Capello
591b3b19ac Add MoveMaskCommand::getDelta member function 2016-05-18 12:03:28 -03:00
David Capello
4929efbd9c Remove "Moving Pixels" label in status bar 2016-05-18 11:55:39 -03:00
David Capello
10be4b4d82 Add support to drop files on OS X window (fix #605) 2016-05-17 21:43:29 -03:00
David Capello
1ce74d3c5a Abort loading news file if the application is being closed 2016-05-17 16:21:56 -03:00
David Capello
d495c4d18a Abort curl connections setting the timeout (avoid crash closing connections) 2016-05-17 16:13:25 -03:00
David Capello
c875e24928 Add some log information why WTInfo might fail 2016-05-17 16:11:40 -03:00
David Capello
0f3252a80b Add CopyMerged command (Ctrl+Shift+C) (fix #824) 2016-05-17 12:59:48 -03:00
David Capello
fda9abce33 Fix problem initializing SkiaDisplay with an invalid surface size on OS X
This problem happened when Aseprite is run for the very first time on OS X
(i.e. without an aseprite.ini file in the user configuration directory),
as the final size of the created window might be different (smaller) than
the given width/height parameters in the SkiaDisplay constructor.
2016-05-17 12:19:53 -03:00
David Capello
61a933bee2 Abort http requests when we quit the program 2016-05-17 12:14:01 -03:00
David Capello
cf380ab1a2 Fix selection feedback when we have foreground/background color w/alpha=0 (fix #1133) 2016-05-13 16:00:19 -03:00
David Capello
035916dce3 Fix memory leak on RecentListBox 2016-05-11 13:21:55 -03:00
David Capello
94e56ad97a Fix spray and jumble tools (fix #1130) 2016-05-11 13:14:52 -03:00
David Capello
4f97970b98 Remove unused variable in ExpandCelCanvas 2016-05-11 13:00:25 -03:00
David Capello
0ad2af8eb1 Fix usage of some uninitialized variables 2016-05-11 13:00:02 -03:00
David Capello
e68eebda1c Fix memory leak on cmd::TrimCel 2016-05-11 12:59:32 -03:00
David Capello
8b242bdf06 Fix memory leak loading images for a ImageView widget 2016-05-11 12:58:27 -03:00
David Capello
736f63132b Fix red/blue tint for black/white colors (fix #1125) 2016-05-10 13:19:16 -03:00
David Capello
c12100dedb Reduce the patched region with ExpandCelCanvas when we have the source image to compare with 2016-05-10 11:06:55 -03:00
David Capello
cee3c246bb Add cmd::PatchCel to reduce undo space after a ExpandCelCanvas 2016-05-10 10:47:48 -03:00
David Capello
8c88365418 Fix size calculation for Cmd with a std::stringstream 2016-05-10 10:37:42 -03:00
David Capello
d13862599e Use base::get_pretty_memory_size() to show undo item memory size 2016-05-10 10:37:39 -03:00
David Capello
1e0fd35413 Add cmd::CropCel and implement cmd::TrimCel using it 2016-05-10 10:37:16 -03:00
David Capello
3369d902d9 Show each undo step size when Aseprite is compiled in debug mode 2016-05-09 17:50:57 -03:00
David Capello
1b802aba9e Update src/gfx/README.md 2016-05-09 17:50:53 -03:00
David Capello
71060e74da Add gfx::Region in forward declarations (gfx/fwd.h file) 2016-05-09 17:50:39 -03:00
David Capello
2d632339e0 Fix crash creating a new brush from an empty cel using right-click 2016-05-09 15:53:55 -03:00
David Capello
6a1a9556ae Fix crash copy & paste one frame in its previous frame position
This should fix #1101 too.
2016-05-09 15:47:09 -03:00
David Capello
036cb8b523 Add a little check in DocumentApi::copyCel() in release mode 2016-05-09 15:45:59 -03:00
David Capello
095078ad04 Fix crash when a WM_DDE_INITIATE is received from a native ANSI window 2016-05-09 12:50:53 -03:00
David Capello
31116ff424 script: add Sprite.colorMode property and ColorMode constants 2016-05-07 19:44:11 -03:00
David Capello
e03f34688e script: add Sprite.selection 2016-05-06 20:13:32 -03:00
David Capello
34ebf07118 Fix warning ptr <-> bool conversion in MoveMaskCommand::onEnabled() 2016-05-06 16:52:56 -03:00
David Capello
76eca942f0 script: Sprite.crop() works with selection or x,y,w,h params 2016-05-06 16:52:29 -03:00
David Capello
207bc6c98b script: add Sprite.select/selectAll functions 2016-05-06 16:52:07 -03:00
David Capello
5665ac848d script: add className to Context::pushThis() 2016-05-06 16:51:07 -03:00
David Capello
af7c6e0fa9 script: Add app.exit() function 2016-05-06 16:49:43 -03:00
David Capello
d21e7770d6 Merge branch 'scripting' 2016-05-06 16:35:49 -03:00
David Capello
160418daea Fix pasting screenshots/clipboard content in 32bpp on Windows 2016-05-06 09:09:47 -03:00
David Capello
dbb3cee178 Update version to 1.1.6-dev 2016-05-05 23:23:09 -03:00
David Capello
ccabc9ad01 Fix arrow keys to move selection (fix #1120) 2016-05-05 23:20:34 -03:00
David Capello
20c78f32c6 Fix static_assert() error on gcc and clang 2016-05-05 23:12:55 -03:00
David Capello
29f0371558 Fix flipping images when cel bounds aren't equal to sprite bounds (fix #1119) 2016-05-05 22:54:04 -03:00
David Capello
53500c1990 Restore cleared area correctly when cel position is modified (fix #1109) 2016-05-05 21:46:23 -03:00
David Capello
6556f97b8c Try to directly add a trimmed image in the undo history instead of calling TrimCel 2016-05-05 15:40:37 -03:00