--- np2/macosx/np2.cpp 2003/10/24 20:46:13 1.17 +++ np2/macosx/np2.cpp 2003/10/25 16:07:34 1.20 @@ -3,6 +3,7 @@ #include "strres.h" #include "np2.h" #include "dosio.h" +#include "commng.h" #include "scrnmng.h" #include "soundmng.h" #include "sysmng.h" @@ -36,7 +37,7 @@ #ifdef NP2OPENING #include -#define OPENING_WAIT 1500 +// #define OPENING_WAIT 1500 #endif @@ -567,8 +568,8 @@ static void eventproc(EventRecord *event static void processwait(UINT waitcnt) { if (timing_getcount() >= waitcnt) { - timing_setcount(0); framecnt = 0; + timing_setcount(0); if (np2oscfg.DISPCLK & 3) { if (sysmng_workclockrenewal()) { sysmng_updatecaption(3); @@ -721,6 +722,7 @@ int main(int argc, char *argv[]) { return(0); } + commng_initialize(); sysmng_initialize(); mackbd_initialize(); pccore_init(); @@ -816,7 +818,7 @@ int main(int argc, char *argv[]) { else { timing_setcount(cnt - framecnt); } - framecnt = 0; + processwait(0); } } else {