Windows Display Icon
Todd Cope

In Allegro 4 I was able to get an icon on my program's window by compiling a resource file with ALLEGRO_ICON ICON my_icon.ico in it. Allegro 5 provides the al_set_display_icon() function, but I am wondering, what is the best way to do it?

In my current project I have an icon file with multiple sizes of the icon I wish to use embedded in the executable using the above method, but that icon doesn't appear at the top of the window. Using the al_set_display_icon() function limits me to a single size, which may not look great on some configurations.

Is there any way for me to use the embedded icon as the display icon? If not, what size is the best to use with al_set_display_icon()?

SiegeLord
Todd Cope said:

Using the al_set_display_icon() function limits me to a single size, which may not look great on some configurations.

Maybe try al_set_display_icons()?

Todd Cope

Ahh, didn't see that function. I will try it.

Append: It works great! Thanks for pointing it out.

NiteHackr
Todd Cope said:

Ahh, didn't see that function. I will try it.

Seems the manual needs to be updated as the release version is 5.0.10 and that function was introduced in 5.0.9, yet it still isn't listed (it's in the 5.1 manual).

Thread #613275. Printed from Allegro.cc