X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/086b04762432e6d7a8c7edd9754d87602323fc03..758127221440af60e7416da0f2eb04579340fa6d:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 90d718db89..d02105ec8b 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -144,12 +144,7 @@ wxCursor::wxCursor(const char bits[], int width, int height, m_refData = new wxCursorRefData; M_CURSORDATA->m_cursor = gdk_cursor_new_from_pixmap( - data, mask, -#if GTK_CHECK_VERSION(2, 6, 0) - fg->GetColor(), bg->GetColor(), -#else - wx_const_cast(GdkColor*, fg->GetColor()), wx_const_cast(GdkColor*, bg->GetColor()), -#endif + data, mask, fg->GetColor(), bg->GetColor(), hotSpotX, hotSpotY ); g_object_unref (data); @@ -300,11 +295,7 @@ wxCursor::wxCursor( const wxImage & image ) ( data, mask, -#if GTK_CHECK_VERSION(2, 6, 0) fg.GetColor(), bg.GetColor(), -#else - wx_const_cast(GdkColor*, fg.GetColor()), wx_const_cast(GdkColor*, bg.GetColor()), -#endif hotSpotX, hotSpotY );