Hello everyone,
I'm getting an issue where if you remote desktop to a Windows XP computer and launch an SFML window with a custom icon loaded, it'll be all black. If you remote desktop from XP to Win 7, the icon is fine.
Here's the code used:
sf::Image icon_bmp;
if( icon_bmp.loadFromFile( path ) )
{
sf::Vector2u icon_bmp_size = icon_bmp.getSize();
icon_bmp.createMaskFromColor( sf::Color( 255, 0, 255 ) ); // have tried using with and without
this->window.setIcon( icon_bmp_size.x, icon_bmp_size.y, icon_bmp.getPixelsPtr() );
}
Any ideas?