SFML community forums

Help => Window => Topic started by: FloweyTF on July 07, 2020, 12:50:29 am

Title: SFML cursor left border is broken
Post 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
Title: Re: SFML cursor left border is broken
Post by: eXpl0it3r on July 07, 2020, 09:05:14 am
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):
Quote
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.
Title: Re: SFML cursor left border is broken
Post by: FloweyTF on July 07, 2020, 07:26:15 pm
I'm using sf::Cursor. It states that on UNIX, it behaves like that, but didn't say UNIX like.