SFML community forums

Help => Window => Topic started by: hagen on July 03, 2014, 12:17:05 pm

Title: Window::setIcon copying?
Post by: hagen on July 03, 2014, 12:17:05 pm
Is it safe to assume that Window::setIcon always copies the pixel data, so I do not have to keep them?
Looking into a few implementations (OS X, Unix, Windows) this appears to be the case, but I cannot find a definitive statement in the documentation.
Title: Re: Window::setIcon copying?
Post by: Laurent on July 03, 2014, 12:38:33 pm
Yes, you don't need to keep the icon data on your side.
Title: Re: Window::setIcon copying?
Post by: Nexus on July 03, 2014, 01:14:59 pm
We should state this in the documentation. Laurent, do you want to adapt it correspondingly, or should I?
Title: Re: Window::setIcon copying?
Post by: Laurent on July 03, 2014, 01:41:24 pm
Quote
Laurent, do you want to adapt it correspondingly, or should I?
I'll never say "I'll do it" if you propose to do it 8)
Title: Re: Window::setIcon copying?
Post by: select_this on July 03, 2014, 01:49:42 pm
Delegating like a pro.
Title: Re: Window::setIcon copying?
Post by: Nexus on July 03, 2014, 01:55:53 pm
Who knows, maybe you had a very concise and perfectly fitting wording in mind that you wanted to use at all costs :D
Title: Re: Window::setIcon copying?
Post by: hagen on July 03, 2014, 05:54:46 pm
Yes, you don't need to keep the icon data on your side.

Thanks for clarifying that  :)