--- np2/macosx/np2.cpp 2003/11/05 17:58:01 1.30 +++ np2/macosx/np2.cpp 2003/11/06 01:58:36 1.31 @@ -547,17 +547,22 @@ static void HandleMouseDown(EventRecord // ---- +static void framereset(UINT waitcnt) { + + framecnt = 0; + toolwin_draw((BYTE)waitcnt); + if (np2oscfg.DISPCLK & 3) { + if (sysmng_workclockrenewal()) { + sysmng_updatecaption(3); + } + } +} + static void processwait(UINT waitcnt) { if (timing_getcount() >= waitcnt) { - framecnt = 0; timing_setcount(0); - toolwin_draw((BYTE)waitcnt); - if (np2oscfg.DISPCLK & 3) { - if (sysmng_workclockrenewal()) { - sysmng_updatecaption(3); - } - } + framereset(waitcnt); } } @@ -748,7 +753,7 @@ int main(int argc, char *argv[]) { else { timing_setcount(cnt - framecnt); } - processwait(0); + framereset(0); } } else {