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
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
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
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
f2ba51f1be
Fix double-click in Allegro back-end when she_mouse_callback() is used
2016-03-28 10:36:06 -03:00
David Capello
8304b7511d
Fix FreeType2 font rendering and font height calculation
...
We need to catch the glyph's bearingY value to render each glyph
correctly.
2016-03-15 18:43:36 -03:00
David Capello
fb10cf1d36
Simplify code in generic_surface.h for gcc/clang
2016-03-15 16:34:41 -03:00
David Capello
2fd94ed884
Simplify ft::Face API
...
Changes:
* Added ft::FaceBase to create a future Face impl with HarfBuzz as text
shaping engine
* Define ft::FaceBase::Glyph as the parameter given to the forEachGlyph
parameter
* forEachGlyph and calcTextBounds
* Remove operator FT_Face (we can use FaceBase::isValid() to know if the
face isn't null)
2016-03-15 15:15:37 -03:00
David Capello
6f0819fa30
Fix crash in GenericDrawTextSurface::drawChar() when a TTF is used with Unicode text
2016-03-15 15:10:56 -03:00
Gabriel Rauter
90b1c243b0
Revert make use of aseprite thumbnail-generator"
...
Revert to basic native behavior.
This reverts commit b64ba236d3cef5e1d45e79d9093855713af4e9dc.
2016-03-15 14:32:05 +01:00
David Capello
eec2d64f57
Replace FreeTypeFont::height() impl
2016-03-14 12:40:28 -03:00
David Capello
dbf5d69219
Add a simple cache system for glyphs
2016-03-14 12:09:45 -03:00
David Capello
3b2ce80e37
Fix compilation error in generic_surface.h with gcc and clang
2016-03-14 12:06:50 -03:00
David Capello
c0f402b945
Add she::Font::setAntialias() member function
2016-03-11 15:41:06 -03:00
David Capello
dfa6bcd16b
Add a basic TrueType font impl to she library using FreeType library
2016-03-10 15:49:13 -03:00
David Capello
0abe01c5f4
Merge she::LockedSurface/NonDisposableSurface with she::Surface
2016-03-09 11:00:17 -03:00
David Capello
d49d37302c
Rename she::System::loadBitmapFont -> loadSpriteSheetFont
2016-03-07 17:48:35 -03:00