271 Commits

Author SHA1 Message Date
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
David Capello
97f1d0f895 Rename she::CommonFont to SpriteSheetFont 2016-03-07 17:39:02 -03:00
Gabriel Rauter
b64ba236d3 she/gtk: make use of aseprite thumbnail-generator
use the aseprite thumbnail generator for file preview
2016-03-07 18:59:15 +01:00
Gabriel Rauter
29eaaea1fd she/gtk: add a simple image preview
This adds a simple image preview for image formats supported by
Gdk::Pixbuf.
2016-03-07 15:46:08 +01:00
Gabriel Rauter
745fd180d4 Experimental native gtk3 file dialog
This pull request basicly adds the suport for gtk3 dialogs to she.
it is disabled by default and can be enabled with
cmake ... -DWITH_GTK_FILE_DIALOG_SUPPORT=ON ..
and needs the Experimental option "Use native file dialog"
enabled in aseprite enabled.
It is currently only available on *nix and has a external
dependencie on gtkmm >= 3.16 and glibmm >= 2.45

To have at least backwardcompatibility with ubuntu 15.10
the cmake option -D_WITH_DEPRECATED_GLIB_SUPPORT was added
to make use of a deprecated glibmm method.

Further testing ist need to see how far this backward
compatibility works, as of now ubuntu 12.04 does not seem to work.
But as ubuntu 12.04 will reach its end of support this summer and
ubuntu 15.04 having passed its end of life in february the question
is how far back this support is aimed for. Please enter the commit message for your changes. Lines starting
2016-03-04 21:22:44 +01:00
David Capello
9784721a67 she/system.h needs gfx::Size 2016-03-03 19:27:43 -03:00
David Capello
260f597cc4 Define PACKAGE/VERSION/UPDATE_URL if they are undefined 2016-03-03 19:26:46 -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
4f6a7a7742 Include base/debug.h on files that use ASSERT or TRACE 2016-03-03 19:17:07 -03:00
David Capello
321eb36f52 Fix getting lwin/rwin key state on Windows 2016-03-02 10:07:45 -03:00
Gabriel Rauter
e22332144a Add Windows Key as possible Modifier in Keyboard Shortcuts on Windows and Linux as a step to fix #796 2016-03-01 20:14:32 +01:00
Gabriel Rauter
7d80b16854 fix missing overrides as shown by warnings mentioned in issue #955 2016-02-26 15:37:41 +01:00
David Capello
15e10ad9f6 Add touch magnify event to support OS X trackpad gesture 2016-02-18 13:58:45 -03:00
David Capello
3400cdba8b Hide software cursor when mouse leaves window on Linux (fix #948)
Now we generate MouseEvent/Leave she events when Allegro4 _mouse_on
changes from 1 to 0 or vice-versa on Linux.
2016-02-12 18:59:11 -03:00
David Capello
e46cebe5a0 Fix Skia/OS X compilation errors in skia_window_osx.mm 2016-02-12 14:41:54 -03:00
David Capello
882a67fb6a Fix key modifiers when we draw on Skia/Win (fix #954) 2016-02-12 12:23:34 -03:00
David Capello
228c96b943 Add key modifiers in Skia/Win port to avoid calling she::is_key_pressed()
Related to #954
2016-02-12 12:21:53 -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
4f1431ba2e Add the correct window icon in the Skia/Win port 2016-02-05 17:30:10 -03:00
David Capello
5fff73aded Avoid crash when we start the Skia window on WinXP
On Windows XP, after creating the HWND, when we add the scrollbars with
SetScrollInfo() in WinWindow<T>::createHwnd(), it generates a WM_SIZE,
which is calling resizeImpl(). And as SkiaWindow expects an already
created SkiaDisplay on SkiaWindow::resizeImpl(), the program crashes.
2016-02-05 17:10:01 -03:00
David Capello
87e5be45a9 Avoid deleting two times the direct SkSurface 2016-02-05 16:34:02 -03:00
David Capello
210ffc090e Open files from Windows Explorer using DDE so we re-use the running instance
Fix #477
2016-02-04 13:07:36 -03:00
David Capello
40c834f50a Open files from Finder in Skia/OSX port 2016-01-29 16:07:39 -03:00
David Capello
e97a7070d6 Fix she::Event::setRepeat() calls on Skia/Win WM_KEYUP/DOWN processing 2015-12-30 10:33:44 -03:00