diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/devdraw/osx-screen-carbon.m | 2 | ||||
-rw-r--r-- | src/cmd/devdraw/osx-srv.m | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/devdraw/osx-screen-carbon.m b/src/cmd/devdraw/osx-screen-carbon.m index 6f3b4312..01356726 100644 --- a/src/cmd/devdraw/osx-screen-carbon.m +++ b/src/cmd/devdraw/osx-screen-carbon.m @@ -525,7 +525,7 @@ eventhandler(EventHandlerCallRef next, EventRef event, void *arg) exit(0); case kEventWindowBoundsChanged: - eresized(1); + eresized(0); break; case kEventWindowDrawContent: diff --git a/src/cmd/devdraw/osx-srv.m b/src/cmd/devdraw/osx-srv.m index 722378ee..b7828af2 100644 --- a/src/cmd/devdraw/osx-srv.m +++ b/src/cmd/devdraw/osx-srv.m @@ -121,7 +121,7 @@ main(int argc, char **argv) { NSAutoreleasePool *pool = nil; NSApplication *application = nil; - + DevdrawDelegate *app = nil; /* * Move the protocol off stdin/stdout so that * any inadvertent prints don't screw things up. @@ -152,9 +152,11 @@ main(int argc, char **argv) pool = [[NSAutoreleasePool alloc] init]; application = [NSApplication sharedApplication]; - [application setDelegate:[[DevdrawDelegate alloc] init]]; + app = [[DevdrawDelegate alloc] init]; + [application setDelegate:app]; [application run]; [application setDelegate:nil]; + [app release]; [pool release]; return 0; } |