313 Commits

Author SHA1 Message Date
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
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
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
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
691ff2c08a Fix she/CMakeLists.txt to link with skia with GPU 2016-07-11 12:30:09 -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
51a0bbe6a4 Fix OS X cmd/alt key modifiers status when app is reactivated 2016-07-04 14:14:57 -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
10be4b4d82 Add support to drop files on OS X window (fix #605) 2016-05-17 21:43:29 -03:00
David Capello
c875e24928 Add some log information why WTInfo might fail 2016-05-17 16:11:40 -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
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
924c2ac86a Use clip library to copy/paste text
In this way we can remove all the code related to handle clipboard text
from she and ui libraries.
2016-04-28 23:26:20 -03:00
Azamat H. Hackimov
e7883b7d64 Fixing underlinking for gcc 4.9
Allegro4 backend uses XGrabPointer() from libX11.
Added ${X11_LIBRARIES} for she to resolve underlinking.
2016-04-22 13:42:26 +05:00
David Capello
8e233878b6 Fix compilation error introduced in 119c87873f4660e4553aecc0d4ad2ae59e016fa5 2016-04-21 14:52:16 -03:00
David Capello
ac6d930d08 Missing PointerType in regular mouse movement events on OS X 2016-04-21 13:40:18 -03:00
David Capello
f447b457db Fix crash on OS X
This is strange because it didn’t happen before, I’m not sure if we
can call (or is “legal” to call) setURI() in this case.
2016-04-21 13:33:24 -03:00
David Capello
9b05d2e8ef Add Wacom eraser support on OS X 2016-04-21 13:13:15 -03:00
David Capello
119c87873f Add she::PointerType::Cursor to identify puck like devices 2016-04-21 13:12:03 -03:00
David Capello
7b4511a5df Unify she::InputDevice and ui::PointerType 2016-04-20 22:49:03 -03:00
David Capello
47708a6826 Include device in double-click event on Skia/Win 2016-04-20 22:30:45 -03:00
David Capello
955f86fc9e Add pressure and input device (mouse/stylus/eraser) info to mouse events
This is a first step to implement #610 and #710
2016-04-20 15:44:15 -03:00
David Capello
1c94dda072 Merge pen library into she library
This is the first step to add pen information to mouse events
(e.g. to known if a event came from the eraser or the regular tip).
2016-04-20 12:48:49 -03:00
David Capello
b0f53324a7 Extra checks for an initialized SkiaDisplay for GPU support on OS X 2016-04-13 10:17:59 -03:00
David Capello
99d7eb5391 Fix crash using an non-fully initialized SkiaDisplay on SkiaWindow::Impl::paintGC() on OS X 2016-04-13 10:16:06 -03:00
David Capello
25a24a93d8 Avoid using an uninitialized m_surface pointer in SkiaDisplay
This should fix problems launching Aseprite on OS X (e.g. #1059).
2016-04-13 09:00:29 -03:00
David Capello
7c9ba13321 Add double-click support on Skia/OS X port (fix #1057) 2016-04-12 17:27:01 -03:00
David Capello
44fadbc275 Fix key modifiers on Alleg4/Windows back-end 2016-04-12 11:33:48 -03:00
David Capello
221e9bf4fc Add base::normalize_path() 2016-04-11 19:17:39 -03:00
David Capello
e4c46a761a Fix loading two times a file specified in the command line on OS X
To avoid receiving a she::DropFiles event (from application:openFiles:)
when we're loading files specified in the command line (i.e. when we are
showing the progress bar/processing "ui" layer events/CustomizedGuiManager
is listening for kDropFilesMessages) we call NSApp finishLauching after
we've processed the whole command line.
2016-04-11 19:15:42 -03:00
David Capello
63c723d327 Change OSXAppDelegate base type to avoid an opaque id type 2016-04-11 17:28:19 -03:00
David Capello
5ef931b7d4 Override application:openFiles: instead of application:openFile: 2016-04-11 17:27:34 -03:00
David Capello
49f11648b3 Fix opening files from Finder on the Skia/OS X port 2016-04-11 17:25:54 -03:00
David Capello
c900e4aa3c Don't call app_main() from OSXApp 2016-04-11 16:19:32 -03:00
David Capello
4acf12a478 Make Ctrl+Tab work on Skia/OS X port 2016-04-11 15:30:16 -03:00
David Capello
ed4b26b2c8 Add get_unicodechar_from_nsevent() to she/osx/view.mm 2016-04-11 15:30:16 -03:00
David Capello
8e06d61f74 Use NSWindow noResponseFor: to avoid beeps on Skia/OSX fork 2016-04-11 15:30:15 -03:00
David Capello
df9c555c87 Minor changes in she/osx/ 2016-04-11 15:30:02 -03:00
David Capello
16ae88b6d9 Add comment in she::Event::preciseWheel() 2016-04-11 13:04:44 -03:00
David Capello
1b28c8e482 Fix Alt+key on Linux (fix #83 and #191) 2016-04-08 18:19:07 -03:00
David Capello
00be81dfa8 Fix compilation problems on OS X with skia back-end 2016-04-08 13:08:34 -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