Closed mtolly closed 4 years ago
Thanks for this PR, unfortunately this function is deprecated so it may go away ( although FLTK hasn't cut a release in long enough that I think you're ok for a year at least :) ). Ok if I merge this with a {-# DEPRECATED ... #-}
pragma?
Oh dang, I didn't notice that deprecation... Sure, that's fine by me, I'll keep an eye on if it goes away at some point.
I know you fixed
setIcon
to take anRGBImage
in #154, but this readds (with correct type) the version that takes avoid*
assetIconRaw
(feel free to change, wasn't sure what a good name would be).This version takes a platform-specific icon format. The reason I'd like it is on Windows, I use this to pass the .ico from the executable itself to be the window icon, which produces a nicer 16x16 small icon than passing my normal large icon file and having FLTK scale it down (.ico on top, scaled larger .png on bottom):
This is done like so (inside appropriate
ifdef
s):where
HINSTANCE
andloadIcon
come from theWin32
package.Also I wasn't sure if it makes sense to accept
Ptr a
orPtr ()
. I went with the first but it doesn't really make a difference to me.