Re: [AD] vsync() blocks long time.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> basically  it displays the "Hello world"  just fine.
> but when it gets to vsync()  it blocks forever.
> thing to note here is that the set_color_depth is 16, and the windows 
> desktop is 8 bit.
> coz when i have the windows desktop at 16bit with the above code... the 
> vsync() works just fine.

I can't reproduce the problem with the following code:

#include <allegro.h>

int main(void)
{
   allegro_init();
   install_keyboard();

   set_color_depth(16);
   set_gfx_mode(GFX_GDI,  640, 480, 0, 0);
   textout(screen, font, "Hello World", 10, 10, makecol(0xff,0xff,0xff));
   vsync();
   
   readkey();
   return 0;
}
END_OF_MAIN()


Can you test it on your system ?

- Eric



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/