|
|
| version 1.9, 2003/10/25 16:01:21 | version 1.10, 2003/11/06 01:58:36 |
|---|---|
| Line 559 static void eventproc(EventRecord *event | Line 559 static void eventproc(EventRecord *event |
| // ---- | // ---- |
| static void framereset(void) { | |
| framecnt = 0; | |
| if (np2oscfg.DISPCLK & 3) { | |
| if (sysmng_workclockrenewal()) { | |
| sysmng_updatecaption(3); | |
| } | |
| } | |
| } | |
| static void processwait(UINT waitcnt) { | static void processwait(UINT waitcnt) { |
| if (timing_getcount() >= waitcnt) { | if (timing_getcount() >= waitcnt) { |
| framecnt = 0; | |
| timing_setcount(0); | timing_setcount(0); |
| if (np2oscfg.DISPCLK & 3) { | framereset(); |
| if (sysmng_workclockrenewal()) { | |
| sysmng_updatecaption(3); | |
| } | |
| } | |
| } | } |
| } | } |
| Line 764 int main(int argc, char *argv[]) { | Line 769 int main(int argc, char *argv[]) { |
| else { | else { |
| timing_setcount(cnt - framecnt); | timing_setcount(cnt - framecnt); |
| } | } |
| processwait(0); | framereset(); |
| } | } |
| } | } |
| else { | else { |