Commit Graph

4121 Commits

Author SHA1 Message Date
David Capello
08a04fcb64 Fix symmetry mode when cel origin != sprite origin (0,0)
Change ToolLoop::getOffset() to getCelOrigin()
2015-11-02 16:44:17 -03:00
David Capello
c12cb26875 Fix filter preview when zoom level < 100% 2015-10-30 17:58:47 -03:00
David Capello
3c97f08e4e Fix symmetry axis position on Editor when tiled mode is enabled 2015-10-29 17:11:23 -03:00
David Capello
ef7defdf72 Minor format change in intertwiners.h 2015-10-29 17:02:11 -03:00
David Capello
f4373ffbc5 Apply symmetry at the doPointshapePoint() level
This fixes the pixel-perfect mode (when symmetry is enabled) as it
expects only one joinPoints() call.
2015-10-29 17:01:43 -03:00
David Capello
e9bfa5168c Remove IntertwineAsPixelPerfect::PPData struct 2015-10-29 16:26:52 -03:00
David Capello
d75ac238e4 Reduce dirty area when symmetry mode is enabled 2015-10-29 16:24:20 -03:00
David Capello
24306589f0 Fix comparison between signed/unsigned ints 2015-10-29 16:22:03 -03:00
David Capello
76bbb53c15 Fix warning about unused local variable 2015-10-29 16:18:51 -03:00
David Capello
e5397d9ad3 Don't show symmetry controls on tools like eyedropper/move/zoom 2015-10-29 12:52:22 -03:00
David Capello
c007c162c9 Fix link to docs/workspace/ in README.md 2015-10-29 12:51:54 -03:00
David Capello
1625f49ad4 Merge branch 'fix-spray-tool' 2015-10-29 11:20:01 -03:00
David Capello
30462637de Merge branch 'issue_#838' of https://github.com/Fojar/aseprite into fix-spray-tool 2015-10-29 09:54:00 -03:00
David Capello
b3bb3c077e Update freetype2 submodule
Our change was merged upstream, so now we can use the official master
branch.
2015-10-29 09:16:46 -03:00
David Capello
a3deb2063e Add MovingSymmetryState to modify symmetry axis position 2015-10-28 20:00:18 -03:00
David Capello
7c8876dd65 Remove reference to V8 in README.md 2015-10-28 19:45:01 -03:00
Aravin
5c451d2cfd Spray tool now works with small widths and speeds. (fix #838) 2015-10-28 12:13:14 -04:00
David Capello
41f4fcf802 Fix compilation problem using size_t on clang 3.4 and gcc 4.8 2015-10-26 18:36:57 -03:00
David Capello
56854cdb9f Add symmetry mode (fix #208)
This is a first iteration of the feature, it doesn’t have handles to
move the symmetry line and it only contains two symmetry modes:
horizontal or vertical.

As an extra change, we have added the new Stroke type to wrap a vector
of gfx::Points and simplify some existing code in the ToolLoop.
2015-10-26 17:51:32 -03:00
David Capello
cdfd80f1dd Add missing Edit > Undo History option in gui.xml 2015-10-20 12:00:08 -03:00
David Capello
2eada35a38 Add "Undo History" command (fix #739)
Added member functions to undo::UndoHistory and
app::DocumentUndo to iterate all states of the undo history.
Also we’ve added app::DocumentUndoObserver to see when new states
are added in the undo history.
2015-10-20 11:27:05 -03:00
David Capello
05b70d2538 Make verbose_log() print on stdout when _DEBUG is enabled 2015-10-20 10:46:15 -03:00
David Capello
76e7d15484 Avoid warning about unused variable on non-OSX platforms 2015-10-19 16:41:41 -03:00
David Capello
3dce633bf6 Remove unused variable 2015-10-19 16:41:25 -03:00
David Capello
3d76639141 Add support to load system fonts on Ubuntu in PasteTextCommand 2015-10-19 16:41:14 -03:00
David Capello
62a16d0525 Improve font selection with keyboard in PasteTextCommand 2015-10-19 15:32:44 -03:00
David Capello
02ef2268fe Remove unnecessary filtering of key events in PopupWindow
In this way Tab key (and other focus movement keys) can be used
in PopupWindows. They aren’t propagated to the main window because
a correct filter was added in 883629b563
2015-10-19 15:31:34 -03:00
David Capello
caf8388ac6 Fix crash resizing the window when we restart the app on OS X and it was closed on fullscreen size 2015-10-19 11:32:33 -03:00
David Capello
6e15553c88 Fix crash when window title is changed on OS X and fullscreen is enabled (fix #833) 2015-10-19 09:26:29 -03:00
David Capello
ec5a6fc8b3 Show font name and text preview on each FontItem 2015-10-16 18:52:52 -03:00
David Capello
2a09990b16 Make viewport bigger when we load a new font on FontPopup 2015-10-16 18:51:35 -03:00
David Capello
fcf3d77be9 Limit font size to 999 2015-10-16 18:40:18 -03:00
David Capello
049111bfad Put font size before font family
In this way we can press T, Tab, change the font size, and Enter to try
again quickly with other font size.
2015-10-16 18:40:14 -03:00
David Capello
5e239a0768 Add support for multiple font paths 2015-10-16 18:39:56 -03:00
David Capello
60f0c5bcf7 Avoid warning on clang using side-effect function inside typeid() 2015-10-16 18:39:34 -03:00
David Capello
21a642285d Add folder for system fonts in OS X 2015-10-15 18:33:13 -03:00
David Capello
241aba6370 Don't ref a temporary object 2015-10-15 18:32:55 -03:00
David Capello
7bf6404b85 Add missing <stdexcept> to use std::runtime_error 2015-10-15 18:32:32 -03:00
David Capello
9f8200ea3e Add list of system fonts in PasteTextCommand dialog (on Windows) 2015-10-15 18:16:16 -03:00
David Capello
74c2ce83dc Simplify update_mouse_cursor() code 2015-10-14 19:36:46 -03:00
David Capello
8cba37e36b Return false if the native cursor cannot be change on SkiaWindow::setNativeMouseCursor 2015-10-14 19:31:38 -03:00
David Capello
0900019b1e Minor change in Widget::scrollRegion() to avoid an extra Region::offset() 2015-10-14 18:41:56 -03:00
David Capello
fe6d2f3db0 Minor change in move_region.cpp 2015-10-14 18:39:07 -03:00
David Capello
a16c5b9846 Fix floating tab overlay for Tabs widget on Skia backend 2015-10-14 18:38:53 -03:00
David Capello
ae1861236e Use key modifiers from NSEvents in Skia/OSX 2015-10-14 17:06:23 -03:00
David Capello
bd1a1ffafb Add support to transport key modifiers from she events to UI messages
It’s better if we use the original key modifiers from she::Events (given
by Cocoa or Win32 APIs) instead of asking for the current state of
the modifier when the ui::Message is created (which can be different
from the original value).

This commit adds support to transport the modifiers, but it is not
using the original key modifiers yet.
2015-10-14 16:42:49 -03:00
David Capello
ba194a817f Fix Alt+char on Skia/OSX 2015-10-14 15:53:47 -03:00
David Capello
7e7d3b9dc8 Disable GPU acceleration on Skia/OSX 2015-10-14 13:35:26 -03:00
David Capello
2e5f051e7d Catch exceptions if GL context cannot be created on Skia/OSX 2015-10-14 13:32:15 -03:00
David Capello
72965b14d2 Add missing -DUSE_SKIA_BACKEND and -DUSE_ALLEG4_BACKEND 2015-10-14 13:30:45 -03:00