al_x_set_initial_icon(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… al_x_set_initial_icon(3)

okay bestie, this page lives in the Library Functions Manual and it’s giving Allegro 5 API realness. The main character is al_x_set_initial_icon, and honestly? iconic. ✨


πŸŽ€ NAME πŸŽ€

al_x_set_initial_icon β€” Allegro 5 API. Short, sweet, slay πŸ’–.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro_x.h>

bool al_x_set_initial_icon(ALLEGRO_BITMAP *bitmap)

🌸 DESCRIPTION 🌸

So here’s the tea, bestie: on some window managers β€” notably Ubuntu’s Unity β€” al_set_display_icon doesn’t work, and you need to use a .desktop file instead. Kinda annoying, but we move πŸ’….

Enter this function 🫢. With al_x_set_initial_icon you can set an icon before calling al_create_display. This works by setting the icon before XMapWindow. Lowkey clever, highkey useful. No cap. ✨

🌈 SINCE 🌈

5.2.3

[Unstable API]: New API. 🫢

Bye bestie 🫢 β€” this came from the Allegro reference manual, all about al_x_set_initial_icon(3) (and the footer doesn’t show a date, so we’re not making one up πŸ™ˆ).

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms