for D&D I set the cursor with the selected wxImage which works perfectly under macOS and Windows. For Windows the image will be scaled down to 32x32.
But the same wxImage does not seem to be accepted or wrong interpreted by Linux/GTK. (The cursor image looks like its jammed.)
If I look in the wx gtk sources, cursor.cpp, it seems to be hard coded on how a wxImage should be interpreted...
Code: Select all
GdkPixbuf* pixbuf = gdk_pixbuf_new_from_data(image.GetData(), GDK_COLORSPACE_RGB, false, 8, w, h, w * 3, NULL, NULL);
Q: How should a wxImage be prepared to be wxGTK conform?