295 Commits

Author SHA1 Message Date
David Capello
55f90d8b8b Add target_link_libraries() for sublibraries
With this change we remove some internal variables/lists like sys_libs,
libs3rdparty, etc. And we fix dependencies problems between targets.
2015-07-13 12:16:55 -03:00
David Capello
3dcffc828d Fix crash on Linux with the new mouse callback introduced in PR #709
The callback is called when the unique_display is null, or display
scale is == 0.
2015-07-09 15:08:05 -03:00
David Capello
4bc8944e94 Minor format change 2015-06-23 11:32:18 -03:00
David Capello
b02a3bf955 Fix compilation warning about implicit int -> bool conversion 2015-06-23 11:32:15 -03:00
David Capello
c00f1e39c4 Fix compilation error on VS2013
As mouse_z is "volatile int", it looks like MSC cannot deduce the a
proper ctor for Point() (i.e. Point(const int&, const int&))
2015-06-23 11:32:11 -03:00
Fabio Arnold
43bfcda12e using mouse callback for more fine grained button press detection 2015-06-21 15:59:37 +02:00
David Capello
f8dbbba632 Include allegro_error in exception if allegro_init() fails 2015-06-08 19:51:55 -03:00
David Capello
8902b3701f Avoid compiling error with Allegro 4.2 2015-06-08 19:48:29 -03:00
David Capello
df29126353 Add some progress to Skia/OSX port 2015-06-02 10:16:03 -03:00
David Capello
52d14d8c34 Fix finding necessary Skia libraries on OS X 2015-06-01 14:43:41 -03:00
David Capello
3425bcb0eb Add flags to avoid a lot of clang warnings on OS X 10.10 2015-06-01 14:42:59 -03:00
David Capello
edd67ab4cd Minor change she/skia/she.cpp 2015-06-01 14:42:13 -03:00
David Capello
8986fe129f Rename she::EventQueueImpl -> WinEventQueue 2015-06-01 14:34:03 -03:00
David Capello
e1b55395d5 Rename she::Window -> she::WinWindow 2015-06-01 14:33:47 -03:00
David Capello
4c8cea53df Change Window::setText -> setTitle 2015-06-01 14:32:51 -03:00
David Capello
e8350fb51a Move event queue to she::System 2015-06-01 14:32:06 -03:00
David Capello
5fb914ed68 Add missing m_nativeCursor variable inside she::SkiaDisplay 2015-05-29 10:22:07 -03:00
David Capello
9723d1b6ec Now the file type combobox in FileSelector acts like a filter (fix #643) 2015-05-28 18:59:12 -03:00
David Capello
744fc67b28 Implement native open/save dialog on OS X (issue #321)
There were some problems detecting the release of Cmd+O keys after
opening a NSSavePanel. We fixed those problems calling
osx_keyboard_focused/modifiers(0) when we receive a windowDidResignKey
notification.
2015-05-28 16:29:01 -03:00
David Capello
7826e38382 Change she::FileDialog::show() argument from DisplayHandle to Display
This is because we could make use of Display member functions inside the
FileDialog::show() implementation.
2015-05-28 16:13:07 -03:00
David Capello
2a5c93e333 Move "do you want to overwrite this file?" question inside the FileSelector
Native file dialogs ask this same question too (also they check for
read-only attribute).
2015-05-28 16:11:06 -03:00
David Capello
9dd8d0d120 Add an initial "she" implementation using a WGL context on Skia/Win port 2015-05-26 17:21:19 -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
2b50980cb0 Get keydown event when Alt key is pressed in Skia/Win port 2015-05-22 15:26:01 -03:00
David Capello
e2e33c009d Fix SkiaSurface::drawH/VLine() member functions 2015-05-22 14:08:46 -03:00
David Capello
7bcda88861 Fix redrawing of SkiaDisplay on Windows (now the cursor overlay is visible) 2015-05-22 14:06:54 -03:00
David Capello
5eea582365 Implement SkiaDisplay::setNativeMouseCursor() on Windows 2015-05-22 13:44:41 -03:00
David Capello
da3b3de6c1 Add she::LockedSurface::scrollTo() so we can specialize it in the Skia port 2015-05-22 13:26:09 -03:00
David Capello
237549b818 Implement SkiaDisplay::setMousePosition() 2015-05-22 12:14:45 -03:00
David Capello
73f4de1b5d Fix WM_MOUSEWHEEL/HSCROLL messages in she::Window for Skia
This fix was introduced in the Allegro side in 11929dfd60c180e87cad66d5449ee1c76a28f746
2015-05-22 12:12:49 -03:00
David Capello
a2987b658b Remove WinEventQueue::m_stop flag 2015-05-22 12:04:24 -03:00
David Capello
41114580ae Move SkiaEventQueue to WinEventQueue
Added queueEvent() member function to EventQueue interface.
2015-05-22 11:56:07 -03:00
David Capello
02f8fd7920 Implement SkiaSurface::drawString/Char/ColoredRgbaSurface with a skColorFilter 2015-05-22 11:05:13 -03:00
David Capello
bb7d629471 Use SrcOver mode in SkiaSurface::drawRgbaSurface() 2015-05-22 11:02:46 -03:00
David Capello
3674399d0b Use SrcOver mode in SkiaSurface::fillRect() 2015-05-22 11:02:17 -03:00
David Capello
b44c4f8b7b Fix random pixels from memory in SkiaSurface::create/createRgba/applyScale() 2015-05-22 11:01:24 -03:00
David Capello
def9e7242a Remove commented line in skia_system.h 2015-05-22 10:56:40 -03:00
David Capello
9abb9f1dad Fix double-click on Win/Skia port 2015-05-21 10:50:08 -03:00
David Capello
a90a70bd1e Avoid giving F10 and Alt keys to the system on Win32/Skia port 2015-05-19 15:45:49 -03:00
David Capello
189ee56c4c Implement she::is_key_pressed() on Win32 for the Skia port 2015-05-19 15:34:47 -03:00
David Capello
20f532ffe8 Add Unicode char to WM_KEYDOWN processing in she::Window<T> 2015-05-19 15:17:07 -03:00
David Capello
4c0bbd50f8 Complete she::win32vk_to_scancode() conversions 2015-05-19 14:51:01 -03:00
David Capello
1c447fdeee Fix RGB mask/shift flags for 32bpp in Skia port 2015-05-19 14:21:04 -03:00
David Capello
524930fe54 Implement she::clock_value() with GetTickCount() on Win32 when we use Skia 2015-05-19 14:08:18 -03:00
David Capello
bd7ad0cde0 Fix bug copying text on Windows clipboard
We were asking if the clipboard format was equal to Unicode Text to copy
Unicode text on it.
2015-05-11 11:26:37 -03:00
David Capello
dab8c96fa8 Fix bug getting ANSI clipboard text on Windows
Sometimes the clipboard content is in CF_TEXT format and there is
no implicit CF_UNICODETEXT conversion.
2015-05-07 22:56:02 -03:00
David Capello
11929dfd60 Fix the mouse position in scroll wheel events from she layer 2015-05-07 17:21:37 -03:00
David Capello
955383f91a Add xor-ed bounding box in SelectBoxState when QUICKBOX style is enabled
This is useful when we want to select a brush in a black image (the
DARKOUTSIDE style is not useful in this case).
2015-04-27 12:03:18 -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