36 Commits

Author SHA1 Message Date
David Capello
5e11bebaf0 Implement mouse events and display on Linux/Skia port 2017-04-20 16:33:05 -03:00
David Capello
706b9a84c6 Add a simple processing of the event queue on X11/Skia port 2017-04-19 19:35:26 -03:00
David Capello
5dc8f9c8a0 Move keyboard functions to she::System 2016-11-18 11:15:02 -03:00
David Capello
00099390da Fix several keyboard issues deadling with special characters/dead keys
This change adds support to write text with dead keys, and assign
keyboard shortcuts to special key combinations with Unicode characters
on macOS and Windows.

Fix #1083, close #796
2016-11-17 18:07:00 -03:00
David Capello
151a302830 Update Skia to chrome/m55 (aseprite-m55) branch 2016-10-31 19:50:32 -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
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
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
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
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
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
e4bb2ec45b Initial commit for a new Skia/X11 port 2016-04-04 10:17:14 -03:00
David Capello
5f97e66a8b Include base/base.h on files that use MIN/MID/MAX 2016-03-03 19:18:46 -03:00
David Capello
127a5e76df Enable/disable GPU support on Skia backend if the skia_skgpu lib is available 2016-02-10 00:49:20 -03:00
David Capello
fc58daa814 Add support for ANGLE (D3D) on Skia port
Anyway we've disable the GPU support temporally (related to #960)
2016-02-09 23:12:59 -03:00
David Capello
a6544d92af Improve default window size on Skia/Win port (fix #693) 2015-12-28 18:02:07 -03:00
David Capello
7e7d3b9dc8 Disable GPU acceleration on Skia/OSX 2015-10-14 13:35:26 -03:00
David Capello
07900c8e48 Enable line that doesn't crash anymore on newer version of Skia 2015-10-13 17:10:59 -03:00
David Capello
247a8a7174 Make progress in Skia/OSX port
It includes:
- Use ARC instead of GC (compiling with -fobjc-arc flag)
- Implement GLContextCGL::getStencilBits/getSampleCount functions
- Modify OSXEventQueue to avoid creating a thread for app_main()
- NativeDialogs class can be compiled in 10.4 (with GC) and 10.6 (with
ARC)
- Split she/osx/view.h into view.h and view.mm
- get_local_mouse_pos() takes care of the window scale
- Temporal she::clock_value() impl
- Working SkiaWindow with Quartz and some progress with OpenGL
2015-10-09 19:45:39 -03:00
David Capello
03c0367827 Add option to disable GPU acceleration 2015-10-05 21:18:42 -03:00
David Capello
e732297cfb Update Skia port to latest Skia version 2015-10-02 12:12:37 -03:00
David Capello
e8fde930bd Fix EventQueue::instance() for Skia port 2015-10-02 12:08:38 -03:00
David Capello
6210e0d85c Change she::Capabilities to a enum class 2015-09-30 16:45:04 -03:00
David Capello
df29126353 Add some progress to Skia/OSX port 2015-06-02 10:16:03 -03:00
David Capello
e8350fb51a Move event queue to she::System 2015-06-01 14:32:06 -03:00
David Capello
517e31c34b Move SkiaWindow to skia_window_win.cpp
Also, as the EventQueue should be shared between displays, it is
now created in SkiaSystem.
2015-05-22 15:52:02 -03:00
David Capello
def9e7242a Remove commented line in skia_system.h 2015-05-22 10:56:40 -03:00
David Capello
4bb7c87af5 Recreate SkiaSurface when the window is resized 2015-04-16 20:32:15 -03:00
David Capello
d36883e61e Disable unpremultiplied colors in skia port 2015-04-16 20:31:17 -03:00
David Capello
6b25004b48 Add SkiaSurface::swapBitmap() 2015-04-16 15:38:44 -03:00
David Capello
46a03b1f4c Fix SharedPtr usage in SkiaSystem::loadSurface() 2015-04-16 15:37:31 -03:00
David Capello
c0697dfcef Implement SkiaSystem::loadSurface() and SkiaSurface::drawSurface() 2015-03-25 15:45:37 -03:00
David Capello
fc48164f9d Make bitmap font rendering independent on Allegro FONT
* Change font.png/minifont.png to RGBA to simplify bitmap font reader
* Add she::LockedSurface::drawColoredRgbaSurface()
* Add CommonLockedSurface and CommonFont
* Remove she::System::defaultFont()
* Add she::System::loadBitmapFont()
2015-03-24 09:18:23 -03:00
David Capello
0350ac4bbe Initial work on Skia backend (WIP) 2015-03-16 15:05:13 -03:00