Hello,
I want to change my mouse pointer in my SFML application. (using SFML 2.5.1 on Linux)
I have used the following steps from the documentation:
sf::Cursor cursor;
cursor.loadFromPixels(image.getPixelsPtr(), image.getSize(), {0, 0});
window.setMouseCursor(cursor);
The image I want to use as a mouse pointer is a red rectangle in PNG format
When I start the application, the mouse pointer is rendered strange.
Instead of the white lines, the mouse pointer should normally be displayed.
Do I lose any data when loading the image, so I get such an output?