diff options
Diffstat (limited to 'gdk/win32/gdkcursor-win32.c')
-rw-r--r-- | gdk/win32/gdkcursor-win32.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c index 85e040c089..aeac1a7a87 100644 --- a/gdk/win32/gdkcursor-win32.c +++ b/gdk/win32/gdkcursor-win32.c @@ -18,6 +18,7 @@ * Boston, MA 02111-1307, USA. */ +#include "gdkscreen.h" #include "gdkcursor.h" #include "gdkprivate-win32.h" @@ -83,12 +84,15 @@ _gdk_win32_data_to_wcursor (GdkCursorType cursor_type) } GdkCursor* -gdk_cursor_new (GdkCursorType cursor_type) +gdk_cursor_new_for_screen (GdkScreen *screen, + GdkCursorType cursor_type) { GdkCursorPrivate *private; GdkCursor *cursor; HCURSOR hcursor; + g_return_val_if_fail (screen == gdk_get_default_screen (), NULL); + hcursor = _gdk_win32_data_to_wcursor (cursor_type); if (hcursor == NULL) @@ -302,3 +306,9 @@ _gdk_cursor_destroy (GdkCursor *cursor) g_free (private); } + +GdkScreen * +gdk_cursor_get_screen (GdkCursor *cursor) +{ + return gdk_get_default_screen (); +} |