Search
lxdream.org :: lxdream/src/cocoaui/cocoa_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_win.c
changeset 874:e3007b8799f3
prev839:51f1c4195790
next885:a7de5e3d5be4
author nkeynes
date Tue Oct 14 08:43:01 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Save the main window in a global rather than using [NSApp mainWindow]. This has
the advantage of working properly when the window isn't actually main at the time
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_win.c Tue Sep 02 03:34:00 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Tue Oct 14 08:43:01 2008 +0000
1.3 @@ -247,9 +247,8 @@
1.4 }
1.5 @end
1.6
1.7 -NSWindow *cocoa_gui_create_main_window()
1.8 +LxdreamMainWindow *cocoa_gui_create_main_window()
1.9 {
1.10 NSRect contentRect = {{0,0},{640,480}};
1.11 - NSWindow *main_win = [[LxdreamMainWindow alloc] initWithContentRect: contentRect];
1.12 - return main_win;
1.13 + return [[LxdreamMainWindow alloc] initWithContentRect: contentRect];
1.14 }
.