[AD] A weird problem |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Here is a weird problem
I tried this program:
-------------------------------------------------
#include <allegro.h>
int main() {
int c_d;
allegro_init();
c_d = desktop_color_depth();
allegro_message("Color depth = %d", c_d);
return 0;
}
END_OF_MAIN();
-------------------------------------------------
When I compile with : "gcc essai.c -o essai.exe -lalleg"
I got "Color depth = 16", so that's great
But When I use this line:
"gcc essai.c -o essai.exe -O2 -lalleg"
I got "Color depth = 2013270720"
I am really confused, who can help me?
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |