SFML community forums
Help => Window => Topic started by: FloweyTF on July 07, 2020, 12:50:29 am
-
I have a sprite for a cursor, and is has a black outline. The left border of it is black, but it shows up as white. I'm on linux.
EDIT: after some more testing, it seem as if there are just random lines on my sprite
-
Are you using sf::Sprite or sf::Cursor?
For sf::Cursor, note the the warning in the documentation (https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1Cursor.php#ac24ecf82ac7d9ba6703389397f948b3a):
On Unix, the pixels are mapped into a monochrome bitmap: pixels with an alpha channel to 0 are transparent, black if the RGB channel are close to zero, and white otherwise.
-
I'm using sf::Cursor. It states that on UNIX, it behaves like that, but didn't say UNIX like.