maybe fix terminal in foreground issue

develop
Myk Taylor 2023-05-02 21:06:46 -07:00
parent 8b6d20ae9e
commit bebf3584ba
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 3 additions and 0 deletions

@ -40,6 +40,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Fixes
## Misc Improvements
- Terminal console no longer appears in front of the game window on startup
## Documentation

@ -508,6 +508,7 @@ bool Console::init(bool)
inited = true;
// DOESN'T WORK - locks up DF!
// ForceForegroundWindow(d->MainWindow);
SetForegroundWindow(d->MainWindow);
return true;
}
// FIXME: looks awfully empty, doesn't it?
@ -608,6 +609,7 @@ void Console::msleep (unsigned int msec)
bool Console::hide()
{
ShowWindow( GetConsoleWindow(), SW_HIDE );
SetForegroundWindow(d->MainWindow);
return true;
}