Commit Graph

3736 Commits

Author SHA1 Message Date
David Capello
f13dc4f305 Fix some problems drawing the new MaskBoundaries to show the brush preview 2015-06-11 19:18:49 -03:00
David Capello
0a17a82fe0 Avoid two ImageIterators in MaskBoundaries ctor when we compile in release mode 2015-06-11 19:00:24 -03:00
David Capello
d732f5b05f Use get_pixel_address_fast() in ImageIterator 2015-06-11 18:59:51 -03:00
David Capello
2b104260f5 Add optional compiler flag to see the boundaries generation performance 2015-06-11 17:54:33 -03:00
David Capello
826aafe2a4 Replace GIMP code to generate mask and brush boundaries 2015-06-11 17:44:27 -03:00
David Capello
b0876843a9 Add some extra fixes after a document is recovered
There are two issues we can fix:
1. Add more frames if the restored sprite doesn't contain a correct
   "total frames" count (i.e. there is a cel with a frame number > last
   frame)
2. Add missing cels in background layer. (Aseprite expects a Background
   layer with all cels != null).
2015-06-10 20:27:20 -03:00
David Capello
823ccb6b0c Flush all data before we save the MAGIC_NUMBER for each file in the backup process 2015-06-10 20:02:44 -03:00
David Capello
edb4971b4c Don't show an error if we weren't able to restore one specific object version in data recovery process 2015-06-10 18:57:42 -03:00
David Capello
5308303d8a Don't call FrameTag::setId() we are restoring them from data recovery 2015-06-10 18:22:07 -03:00
David Capello
5644d8fe18 Fix typo in doc/object.cpp 2015-06-10 17:57:57 -03:00
David Capello
e0781eb461 Include AniDir field for FrameTag undo and data recovery information 2015-06-10 17:57:50 -03:00
David Capello
0653f99dfe Include frame tags in the data recovery process 2015-06-10 17:52:29 -03:00
David Capello
5a97f4b129 Adjust StatusBar's opacity slider min size depending on window resizes 2015-06-10 17:17:27 -03:00
David Capello
33b42d195b Avoid exporting one single backslash in JSON data strings 2015-06-10 17:11:48 -03:00
David Capello
5e46ed6571 Avoid exporting a file path in JSON data by default when a file without frames or layers is specified 2015-06-10 16:59:41 -03:00
David Capello
8eefdf174e Fix problem mapping "Ctrl++ Pad" key 2015-06-10 16:44:46 -03:00
David Capello
4733a0151d Use tests/test.h for tests linked with she library (fix #698) 2015-06-10 09:37:15 -03:00
David Capello
4d055a7170 Rename gfx::Rect::createIntersect -> createIntersection 2015-06-09 16:22:47 -03:00
David Capello
394c431d61 Replace JGrid to Grid in grid_ui_tests 2015-06-09 14:19:54 -03:00
David Capello
f310a51dfb Merge branch 'ci' 2015-06-09 13:30:37 -03:00
David Capello
a11e6aff76 Fix for "multiple definition" link error with clang on Linux and shared Allegro lib 2015-06-09 12:47:27 -03:00
David Capello
47a05434fe Remove some remaining parts of USE_SHARED_GTEST option 2015-06-09 10:54:04 -03:00
David Capello
be0f0892e2 Remove special flags to compile loadpng
These flags are defined in the main CMakeLists.txt file if they are needed.
2015-06-09 10:47:14 -03:00
David Capello
86fe6a316b Don't create she::System on file_tests and gif_tests 2015-06-09 10:40:39 -03:00
David Capello
a2b3822730 Avoid unused variable warning in gif_format.cpp when we compile with giflib4 2015-06-09 10:37:19 -03:00
David Capello
4a6e17135e Keep going if some tests fails 2015-06-09 10:33:52 -03:00
David Capello
8c8abcdf32 Use sizeof() instead of png_sizeof() to avoid problems with specific libpng versions 2015-06-09 10:25:44 -03:00
David Capello
b2fb33a415 Don't use our copy of libpng header files when USE_SHARED_LIBPNG is ON 2015-06-09 10:20:56 -03:00
David Capello
65d03c9893 Add support to compile gif_format.cpp with giflib 4 2015-06-08 20:21:50 -03:00
David Capello
1eb94d746d Fix red/blue onion skin for Indexed images 2015-06-08 19:58:23 -03:00
David Capello
f8dbbba632 Include allegro_error in exception if allegro_init() fails 2015-06-08 19:51:55 -03:00
David Capello
8902b3701f Avoid compiling error with Allegro 4.2 2015-06-08 19:48:29 -03:00
David Capello
ed4ff82a5e Add extra PATH_SUFFIXES to find pixman library 2015-06-08 18:21:20 -03:00
David Capello
222562db09 Remove USE_SHARED_GTEST option 2015-06-08 18:20:39 -03:00
David Capello
b3b6a28427 Now include(CheckCXXSourceCompiles) is required in src/CMakeLists.txt 2015-06-08 17:46:37 -03:00
David Capello
0c115e5567 Move code to find gtest shared version into src/CMakeLists.txt 2015-06-08 17:42:08 -03:00
David Capello
b03f6de006 Try with an alternative name for pixman shared library 2015-06-08 17:41:36 -03:00
David Capello
fdeba03216 Fix find_library() call for gtest library (issue #695) 2015-06-08 17:29:42 -03:00
David Capello
9d3f2b1225 Without special clang version 2015-06-08 17:26:12 -03:00
David Capello
0c09a0d229 Add special repository for g++-4.8 2015-06-08 17:20:18 -03:00
David Capello
54c1cbfd53 Specify exact libcurl library in apt-get install 2015-06-08 16:53:00 -03:00
David Capello
137a75c451 Install dependencies in before_install step 2015-06-08 16:49:36 -03:00
David Capello
ac4328f4cf Add matrix to travis.yml to compile with shared libraries 2015-06-08 16:33:59 -03:00
David Capello
470e1e93f7 Run only non-UI tests 2015-06-08 16:33:12 -03:00
David Capello
8324daaf67 Testing travis-ci 2015-06-08 15:57:15 -03:00
David Capello
f9b76e0f3e Fix crash destroying PixelsMovement's extra cel from Editor::clearBrushPreview()
If Ctrl key isn't mapped to Move tool (or any tool without brush preview),
when we use Ctrl+V to paste clipboard content, the extra cel created
by PixelsMovement will be destroyed by Editor::clearBrushPreview()
when the Editor state changes.

This bug only happened when the brush preview was visible and Ctrl+V was
used. Also it could happen if we mapped any other key (e.g. "A") to
paste the clipboard content directly when we were using a drawing tool
(like the Pencil tool).
2015-06-08 12:13:55 -03:00
David Capello
0a1dfe0633 Merge branch 'onionskin'
Conflicts:
	src/app/ui/editor/play_state.cpp
	src/render/render.cpp
	third_party/gtest
2015-06-05 15:53:15 -03:00
David Capello
b3db9c4f7c Default FG color=white and default BG color=black 2015-06-05 01:05:43 -03:00
David Capello
557c7854bc Fix random crash using Eyedropper with Alt+click
This was a problem related to uninitialized memory in Render class.
The Render::renderLayer() member function was accessing to an invalid
m_previewImage pointer.
2015-06-05 01:05:35 -03:00
David Capello
59cdae7715 Fix crash when there is an unknown file format inside palettes/ folder 2015-06-03 22:27:06 -03:00