mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 03:40:25 +00:00
BURIED: Fix some visiblility issues
Windows should be invisible by default. Add some missing ShowWindow calls.
This commit is contained in:
parent
4ea076bde0
commit
3c13de6ee1
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user