pixbuf cursor support is for GTK 2.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -178,7 +178,9 @@ wxCursor::wxCursor( const wxImage & image )
|
||||
bool bHasMask = image.HasMask();
|
||||
int imagebitcount = (w*h)/8;
|
||||
|
||||
#if GTK_CHECK_VERSION(2,2,0)
|
||||
#ifdef __WXGTK24__
|
||||
if (!gtk_check_version(2,4,0))
|
||||
{
|
||||
if ( gdk_display_supports_cursor_color(gdk_display_get_default()) )
|
||||
{
|
||||
unsigned char rMask = 0,
|
||||
@@ -225,7 +227,8 @@ wxCursor::wxCursor( const wxImage & image )
|
||||
g_object_unref (pixbuf);
|
||||
return;
|
||||
}
|
||||
#endif // GTK+ 2.2+
|
||||
}
|
||||
#endif // GTK+ 2.4+
|
||||
|
||||
unsigned char * bits = new unsigned char [imagebitcount];
|
||||
unsigned char * maskBits = new unsigned char [imagebitcount];
|
||||
|
Reference in New Issue
Block a user