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