1
Window / Window Icon doesn't show properly
« on: August 20, 2009, 11:28:57 am »
Hi all together.
I've got a problem with the window icon.
It isn't draw corectly, only a few pixels are visible and I don't know why.
Maby something is wrong with my code.
I use a 15 x 15 .png image but .jpg also doesn't work.
I've uploaded the code hier:
http://sfml15-seticont.sourceforge.net
Thanks for your help.
I've got a problem with the window icon.
It isn't draw corectly, only a few pixels are visible and I don't know why.
Maby something is wrong with my code.
Code: [Select]
sf::RenderWindow App(sf::VideoMode(300,300,32), "Test");
sf::Image img_icon;
img_icon.LoadFromFile("icon_error.png");
App.SetIcon(img_icon.GetWidth(), img_icon.GetHeight(), (sf::Uint8*)&img_icon);
I use a 15 x 15 .png image but .jpg also doesn't work.
I've uploaded the code hier:
http://sfml15-seticont.sourceforge.net
Thanks for your help.