al_x_set_initial_icon(3)
π
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