mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-02 20:01:23 +00:00
Mac: Make the startup windows responsive and actively updating while in "show message log, the program is working" mode.
git-svn-id: https://svn.eduke32.com/eduke32@5967 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d1f6dbeaea
commit
2b38557f49
2 changed files with 44 additions and 16 deletions
|
@ -582,6 +582,13 @@ int startwin_open(void)
|
|||
|
||||
[startwin setupMessagesMode];
|
||||
|
||||
[nsapp finishLaunching];
|
||||
|
||||
[startwin center];
|
||||
[startwin makeKeyAndOrderFront:nil];
|
||||
|
||||
CreateApplicationMenus();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -628,7 +635,20 @@ int startwin_idle(void *v)
|
|||
{
|
||||
UNREFERENCED_PARAMETER(v);
|
||||
|
||||
if (startwin) [startwin displayIfNeeded];
|
||||
if (startwin)
|
||||
{
|
||||
NSEvent *event;
|
||||
do
|
||||
{
|
||||
event = [nsapp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate date] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
[nsapp sendEvent:event];
|
||||
}
|
||||
while (event != nil);
|
||||
|
||||
[startwin displayIfNeeded];
|
||||
[nsapp updateWindows];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -647,13 +667,6 @@ int startwin_run(void)
|
|||
|
||||
[startwin setupRunMode];
|
||||
|
||||
[nsapp finishLaunching];
|
||||
|
||||
[startwin center];
|
||||
[startwin makeKeyAndOrderFront:nil];
|
||||
|
||||
CreateApplicationMenus();
|
||||
|
||||
do
|
||||
{
|
||||
NSEvent *event = [nsapp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
|
@ -663,6 +676,7 @@ int startwin_run(void)
|
|||
while (retval == -1);
|
||||
|
||||
[startwin setupMessagesMode];
|
||||
[nsapp updateWindows];
|
||||
|
||||
if (retval) {
|
||||
fullscreen = settings.fullscreen;
|
||||
|
|
|
@ -589,6 +589,13 @@ int startwin_open(void)
|
|||
|
||||
[startwin setupMessagesMode];
|
||||
|
||||
[nsapp finishLaunching];
|
||||
|
||||
[startwin center];
|
||||
[startwin makeKeyAndOrderFront:nil];
|
||||
|
||||
CreateApplicationMenus();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -635,7 +642,20 @@ int startwin_idle(void *v)
|
|||
{
|
||||
UNREFERENCED_PARAMETER(v);
|
||||
|
||||
if (startwin) [startwin displayIfNeeded];
|
||||
if (startwin)
|
||||
{
|
||||
NSEvent *event;
|
||||
do
|
||||
{
|
||||
event = [nsapp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate date] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
[nsapp sendEvent:event];
|
||||
}
|
||||
while (event != nil);
|
||||
|
||||
[startwin displayIfNeeded];
|
||||
[nsapp updateWindows];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -653,13 +673,6 @@ int startwin_run(void)
|
|||
|
||||
[startwin setupRunMode];
|
||||
|
||||
[nsapp finishLaunching];
|
||||
|
||||
[startwin center];
|
||||
[startwin makeKeyAndOrderFront:nil];
|
||||
|
||||
CreateApplicationMenus();
|
||||
|
||||
do
|
||||
{
|
||||
NSEvent *event = [nsapp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
|
@ -669,6 +682,7 @@ int startwin_run(void)
|
|||
while (retval == -1);
|
||||
|
||||
[startwin setupMessagesMode];
|
||||
[nsapp updateWindows];
|
||||
|
||||
if (retval) {
|
||||
ud.config.ScreenMode = settings.fullscreen;
|
||||
|
|
Loading…
Reference in a new issue