From a3125d4f99a4132f2c7bc894c4f00c33e6413a51 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 16 Mar 2013 19:51:14 +0100 Subject: [PATCH] also kill the win32 specific path (gtk should handle this anyway) --- libs/gtkutil/cursor.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/libs/gtkutil/cursor.cpp b/libs/gtkutil/cursor.cpp index cf1935bf..407735c9 100644 --- a/libs/gtkutil/cursor.cpp +++ b/libs/gtkutil/cursor.cpp @@ -55,30 +55,6 @@ void default_cursor( GtkWidget* widget ){ } -#if defined( WIN32 ) - -// FIXME do we really need this? gdk_display_warp_pointer should not be depending on X11, so... - -#include - -void Sys_GetCursorPos( GtkWindow* window, int *x, int *y ){ - POINT pos; - GetCursorPos( &pos ); - ScreenToClient( (HWND)GDK_WINDOW_HWND( GTK_WIDGET( window )->window ), &pos ); - *x = pos.x; - *y = pos.y; -} - -void Sys_SetCursorPos( GtkWindow* window, int x, int y ){ - POINT pos; - pos.x = x; - pos.y = y; - ClientToScreen( (HWND)GDK_WINDOW_HWND( GTK_WIDGET( window )->window ), &pos ); - SetCursorPos( pos.x, pos.y ); -} - -#else - void Sys_GetCursorPos( GtkWindow* window, int *x, int *y ){ gdk_display_get_pointer( gdk_display_get_default(), 0, x, y, 0 ); } @@ -86,5 +62,3 @@ void Sys_GetCursorPos( GtkWindow* window, int *x, int *y ){ void Sys_SetCursorPos( GtkWindow* window, int x, int y ){ gdk_display_warp_pointer( gdk_display_get_default(), 0, x, y ); } - -#endif -- 2.39.2