From: Rudolf Polzer Date: Sat, 16 Mar 2013 18:51:14 +0000 (+0100) Subject: also kill the win32 specific path (gtk should handle this anyway) X-Git-Tag: xonotic-v0.7.0~2 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=a3125d4f99a4132f2c7bc894c4f00c33e6413a51 also kill the win32 specific path (gtk should handle this anyway) --- 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