BURIED: Fix some visiblility issues

Windows should be invisible by default. Add some missing ShowWindow calls.
This commit is contained in:
Matthew Hoops 2013-09-11 22:49:47 -04:00 committed by Eugene Sandulenko
parent 4ea076bde0
commit 3c13de6ee1
3 changed files with 5 additions and 1 deletions

View File

@ -98,6 +98,7 @@ Common::Error BuriedEngine::run() {
_gfx = new GraphicsManager(this);
_sound = new SoundManager(this);
_mainWindow = new FrameWindow(this);
_mainWindow->showWindow(Window::kWindowShow);
if (isDemo()) {
((FrameWindow *)_mainWindow)->showTitleSequence();

View File

@ -79,6 +79,7 @@ bool TitleSequenceWindow::playTitleSequence() {
_currentMovie->setWindowPos(0, 195, 115, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
_currentMovie->enableWindow(false);
_currentMovie->showWindow(kWindowShow);
_currentMovie->playVideo();
_currentAnimation = 1;
return true;
@ -97,6 +98,7 @@ bool TitleSequenceWindow::playTitleSequence() {
_currentMovie->setWindowPos(0, 200, 60, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
_currentMovie->enableWindow(false);
_currentMovie->showWindow(kWindowShow);
_currentMovie->playVideo();
_currentAnimation = 2;
return true;
@ -114,6 +116,7 @@ bool TitleSequenceWindow::playTitleSequence() {
_currentMovie->setWindowPos(0, 60, 138, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
_currentMovie->enableWindow(false);
_currentMovie->showWindow(kWindowShow);
invalidateWindow();
_currentMovie->playVideo();
_currentAnimation = 3;

View File

@ -37,7 +37,7 @@ struct Message;
class Window {
public:
Window(BuriedEngine *vm, Window *parent, bool visible = true);
Window(BuriedEngine *vm, Window *parent, bool visible = false);
virtual ~Window();
// The message types used by Buried in Time's windows