Allegro Manual
Common mistakes
Ignoring this manual.
main() not returning int.
Semicolon at END_OF_MAIN.
Getting bitmap's size.
Creating bitmaps before loading.
Loading a bitmap/font/sound inside a global object constructor.
Calling set_color_depth without resetting graphic mode.
Destroying global objects like `screen'.
Destroying global objects like `screen'.
Description
Destroying global objects like `
screen
'.
Unlike other bitmaps `screen' is created by calling
set_gfx_mode()
and must not be destroyed by calling
destroy_bitmap()
. The proper way to destroy `screen' is calling
set_gfx_mode(GFX_TEXT, 0, 0, 0, 0)
.