10Fermer12
vinceLe 04/01/2008 à 17:20
//fonction qui attends nb_vbl (une vbl = 0,02 sec à 50Hz)
void attendre_sync (int nb_vbl){
     int i;
     for(i=0;i<nb_vbl;i++) Vsync();
}

//fonction qui attends nb_sec secondes
void attendre_sec(int nb_sec){
    int i;
    char j;
    char j_max;
    if (PEEK(0xFD93)==0X29) j_max=60; else j_max=50;
    for(i=0;i<nb_sec;i++){
        for(j=0;j<j_max;j++) Vsync();
    }
}