Commit Graph

4530 Commits

Author SHA1 Message Date
David Capello
21921fdfd5 Refactor scripting code 2016-04-06 15:37:13 -03:00
David Capello
2ce09c53dd Add customization for square aspect, draw from center, and move origin keys (fix #1028)
Some changes:
- Now ui::Keys aren't processed in app::tools side, they are processed
  in Editor side and converted to ToolLoopModifiers flags.
- Replace ToolLoop::getSelectionMode -> ToolLoop::getModifiers()
2016-04-04 18:46:48 -03:00
David Capello
5847624d0e Merge branch 'cli-options-for-thumbnails' 2016-04-04 13:12:30 -03:00
David Capello
e28881ff65 Better error reporting for --shrink-to, --frame-range, --crop options 2016-04-04 13:09:50 -03:00
David Capello
019e6b3b28 Use , separator in --shrink-to and --frame-range 2016-04-04 13:09:47 -03:00
David Capello
e353a2f79d Minor format changes in app/app.cpp 2016-04-04 13:09:45 -03:00
David Capello
c6482da761 Merge branch range-and-shrink-command-line-options
# Conflicts:
#	third_party/libpng
#	third_party/zlib
2016-04-04 13:09:32 -03:00
David Capello
42e868218f Merge branch 'fix-freetype-libpng-deps' 2016-04-04 12:40:02 -03:00
David Capello
d94b859777 Try to compile libpng before freetype (because freetype depends on libpng) 2016-04-04 12:24:40 -03:00
David Capello
8338784735 Fix crash using RotSprite algorithm on Sprite Size command 2016-04-04 11:39:32 -03:00
David Capello
f25c030a20 Fix issues compiling base/fs_unix.h on FreeBSD (close #1016) 2016-04-04 11:11:57 -03:00
David Capello
4fc0060b79 Fix linking she library with freetype 2016-04-04 10:51:43 -03:00
David Capello
8028cf64db Merge branch 'unicode-text'
# Conflicts:
#	third_party/libpng
#	third_party/zlib
2016-04-04 10:26:57 -03:00
David Capello
e4bb2ec45b Initial commit for a new Skia/X11 port 2016-04-04 10:17:14 -03:00
David Capello
79c2033a67 SkiaSurface::applyScale() uses the same color/alpha-type to resize the image 2016-04-04 10:08:04 -03:00
David Capello
939e86f5e4 SkiaSurface::create() creates opaque images (alpha isn't needed) 2016-04-04 10:07:22 -03:00
David Capello
fdbb70b1a4 Disable zlib tests 2016-04-01 09:50:09 -03:00
David Capello
72b47e061a Disable png tests and dynamic library caching values 2016-04-01 09:17:40 -03:00
David Capello
80a649dc12 Merge branch 'zlib-and-libpng-submodules'
Conflicts:
	third_party/libpng
	third_party/zlib
2016-03-31 17:57:23 -03:00
David Capello
58daa23240 Replace zlib and libpng with submodules 2016-03-31 17:48:54 -03:00
David Capello
02e9d983b6 Merge pull request #1045 from winterheart/vga-palette
VGA 13h standard palette
2016-03-31 13:07:30 -03:00
Azamat H. Hackimov
9c5768d439 VGA 13h standard palette
Fixes #1020
2016-03-31 19:48:49 +05:00
David Capello
677fe41316 Throw exceptions if a SkBitmap cannot be created on SkiaSurface
Maybe in the future we might avoid throwing exceptions from the "she"
layer and just return an error code.
2016-03-29 20:04:49 -03:00
David Capello
aea1e24e32 Merge branch 'optional-tests' 2016-03-29 19:51:44 -03:00
David Capello
e10a3e4a17 Disable tests by default
Sometimes a compilation error in a test is reported when the user only
wants to execute the Aseprite binary (and it's actually already compiled).
2016-03-29 19:07:45 -03:00
David Capello
0430fe998c Rename cmake/Find-tests.cmake to cmake/FindTests.cmake 2016-03-29 19:07:43 -03:00
David Capello
cb4b45e58b Merge branch 'optional-tests' of https://github.com/winterheart/aseprite into optional-tests 2016-03-29 19:07:36 -03:00
David Capello
0605166cc6 Move clock/tick from "she" to "base" library and switch to uint64_t type 2016-03-29 16:19:23 -03:00
David Capello
3cd7d273d9 Update she/CMakeLists.txt for Skia branch 'chrome/m50' 2016-03-29 14:36:03 -03:00
David Capello
554885b83e Avoid warning about multiline comment on gcc 2016-03-29 12:53:16 -03:00
Azamat H. Hackimov
981823227b Some cleanup. 2016-03-29 17:53:06 +05:00
David Capello
bde0372f33 Add some notes in INSTALL.md about known issues when the official Allegro 4.4 is used 2016-03-29 09:26:35 -03:00
Azamat H. Hackimov
7964f1feb1 Make building tests optional
Added new option ENABLE_TESTS in CMake (ON by default)
2016-03-29 15:06:59 +05:00
David Capello
64449ffba8 Avoid signed/unsigned comparison in gcc/debug compilation 2016-03-28 18:59:35 -03:00
David Capello
27b55030e2 Fix bug pressing warning icon to add palette color when active locale is non-English
It looks like Allegro library was changing the locale to the active
one, and it can break things like strtod() (which is used to convert
colors from string format in AddColor command). In this case, if we added
a HSV color with double floating-point precision, it was added incorrectly
because strtod() wasn't taking the decimal part.
2016-03-28 15:30:00 -03:00
David Capello
f2ba51f1be Fix double-click in Allegro back-end when she_mouse_callback() is used 2016-03-28 10:36:06 -03:00
David Capello
b62c1e195f Merge branch 'HunterNN-master' 2016-03-26 10:57:19 -03:00
David Capello
799803d582 Add DrawingState::destroyLoopIfCanceled() to avoid duplicated code 2016-03-26 10:56:20 -03:00
David Capello
fde573d8db Merge branch 'master' of https://github.com/HunterNN/aseprite into HunterNN-master 2016-03-26 10:49:36 -03:00
David Capello
85418c1530 Fix invalid LIBJPEG_DIR reference introduced in 3e9de78fa2 2016-03-26 10:39:26 -03:00
David Capello
cf6be7349b Revert 6a63dc5aad as app already depends on net-lib 2016-03-26 10:17:12 -03:00
David Capello
3b7674a6c7 Merge pull request #1035 from winterheart/cmake
CMake improvements
2016-03-26 09:21:10 -03:00
Azamat H. Hackimov
1a682f82eb Replaced LIBCURL_* to CURL_* in CMakeList
According to find_package() variables.
2016-03-26 16:01:45 +05:00
Azamat H. Hackimov
6a63dc5aad Adding ${CURL_LIBRARIES} to application linking
Fixing compilation underlinking with system curl.
2016-03-26 15:22:57 +05:00
Azamat H. Hackimov
3e9de78fa2 Using FOO_LIBRARIES and FOO_HEADERS from system cmake.
Fixes issue #864 (FREETYPE_INCLUDE_DIRS has not been added to search path)
2016-03-26 15:17:12 +05:00
Azamat H. Hackimov
75f908b45e Use find_package(FOO REQUIRED)
Using more cmake-way finding packages for shared system libraries
where it is possible.
2016-03-26 14:26:22 +05:00
Hunter99
edb2f971e5 Added cancel drawing loop on key release (fix #1002) 2016-03-25 14:32:36 +01:00
David Capello
7934c975ca Fix bug painting selection edges when zoom < 100% (fix #905) 2016-03-24 18:24:32 -03:00
David Capello
f696d895b4 Do not remap indexes between palette entries that are equal (fix #914) 2016-03-24 17:37:04 -03:00
David Capello
b4ce12beb4 Simplify hidden brush preview style 2016-03-24 14:51:57 -03:00