summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32/ecore_win32_window.c
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-10-16 07:08:09 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-12-01 12:15:31 -0800
commitba4fbb99bc99734b81925793f47cc2601be5bd5b (patch)
treebf19161d1ae43804f71b69e890d4de81be58a5a8 /src/lib/ecore_win32/ecore_win32_window.c
parentabf4364b3085d4717187154491f2040ae4d4ce66 (diff)
ecore_win32: add support of X11 shaped cursors
@feature Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_win32/ecore_win32_window.c')
-rw-r--r--src/lib/ecore_win32/ecore_win32_window.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/ecore_win32/ecore_win32_window.c b/src/lib/ecore_win32/ecore_win32_window.c
index 792fcb3..01f4074 100644
--- a/src/lib/ecore_win32/ecore_win32_window.c
+++ b/src/lib/ecore_win32/ecore_win32_window.c
@@ -155,6 +155,8 @@ _ecore_win32_window_internal_new(Ecore_Win32_Window *parent,
155 w->drag.current_mouse_x = -32768; 155 w->drag.current_mouse_x = -32768;
156 w->drag.current_mouse_y = -32768; 156 w->drag.current_mouse_y = -32768;
157 157
158 w->cursor = LoadCursor (NULL, IDC_ARROW);
159
158 return w; 160 return w;
159} 161}
160 162
@@ -1436,8 +1438,13 @@ ecore_win32_window_fullscreen_set(Ecore_Win32_Window *window,
1436 * 1438 *
1437 * This function sets @p cursor to @p window. @p cursor must have been 1439 * This function sets @p cursor to @p window. @p cursor must have been
1438 * obtained by ecore_win32_cursor_new() or 1440 * obtained by ecore_win32_cursor_new() or
1439 * ecore_win32_cursor_shaped_new(). If @p window or @p cursor is 1441 * ecore_win32_cursor_shaped_new() or
1442 * ecore_win32_cursor_x11_shaped_new(). If @p window or @p cursor is
1440 * @c NULL, the function does nothing. 1443 * @c NULL, the function does nothing.
1444 *
1445 * @see ecore_win32_cursor_new()
1446 * @see ecore_win32_cursor_shaped_new()
1447 * @see ecore_win32_cursor_x11_shaped_new()
1441 */ 1448 */
1442EAPI void 1449EAPI void
1443ecore_win32_window_cursor_set(Ecore_Win32_Window *window, 1450ecore_win32_window_cursor_set(Ecore_Win32_Window *window,
@@ -1448,11 +1455,7 @@ ecore_win32_window_cursor_set(Ecore_Win32_Window *window,
1448 if (!window || !cursor) 1455 if (!window || !cursor)
1449 return; 1456 return;
1450 1457
1451 if (!SetClassLongPtr(window->window, 1458 window->cursor = cursor;
1452 GCLP_HCURSOR, (LONG_PTR)cursor))
1453 {
1454 ERR("SetClassLong() failed");
1455 }
1456} 1459}
1457 1460
1458/** 1461/**