[ Thread Index | 
Date Index
| More lists.liballeg.org/allegro-developers Archives
] 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 15 July 2002 21:52, Emeric Poupon wrote:
> #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();
[snip]
Try compiling this code instead, it should help to narrow the problem 
down:
#include <allegro.h>
int main()
{
    int a, b;
    if(allegro_init()) abort();
    a = desktop_color_depth();
    b = 16;
    allegro_message("Color depth = %d", a);
    allegro_message("Color depth = %d", b);
    allegro_message("Color depth = %d", desktop_color_depth());
    return 0;
}
Depending on the results, we can track down whether it is an Allegro bug 
or a MinGW bug.
- -- 
Laurence Withers,  lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9MzvRUdhclgSmRuoRAqh8AJ4n9KpYmmPwjtX0IrKR4fpcymxEjwCgpGUY
Ajxf/i8GmIMSDtHP8xfHHy0=
=epHF
-----END PGP SIGNATURE-----