|
|
| version 1.31, 2003/11/06 01:58:36 | version 1.32, 2003/11/06 18:27:59 |
|---|---|
| Line 620 int main(int argc, char *argv[]) { | Line 620 int main(int argc, char *argv[]) { |
| #ifdef OPENING_WAIT | #ifdef OPENING_WAIT |
| UINT32 tick; | UINT32 tick; |
| #endif | #endif |
| dosio_init(); | dosio_init(); |
| file_setcd(target); | file_setcd(target); |
| Line 910 static pascal OSStatus np2windowevent(Ev | Line 910 static pascal OSStatus np2windowevent(Ev |
| switch (whatHappened) | switch (whatHappened) |
| { | { |
| case kEventWindowClose: | case kEventWindowClose: |
| np2running = FALSE; | taskmng_exit(); |
| result = noErr; | result = noErr; |
| break; | break; |
| case kEventWindowActivated: | case kEventWindowActivated: |
| Line 1013 static void setUpCarbonEvent(void) { | Line 1013 static void setUpCarbonEvent(void) { |
| InstallWindowEventHandler(hWndMain, NewEventHandlerUPP(np2windowevent), | InstallWindowEventHandler(hWndMain, NewEventHandlerUPP(np2windowevent), |
| GetEventTypeCount(windEventList), | GetEventTypeCount(windEventList), |
| windEventList, 0, NULL); | windEventList, 0, NULL); |
| InstallStandardEventHandler(GetWindowEventTarget(hWndMain)); | |
| } | } |
| static bool setupMainWindow(void) { | static bool setupMainWindow(void) { |