mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +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);
|
_gfx = new GraphicsManager(this);
|
||||||
_sound = new SoundManager(this);
|
_sound = new SoundManager(this);
|
||||||
_mainWindow = new FrameWindow(this);
|
_mainWindow = new FrameWindow(this);
|
||||||
|
_mainWindow->showWindow(Window::kWindowShow);
|
||||||
|
|
||||||
if (isDemo()) {
|
if (isDemo()) {
|
||||||
((FrameWindow *)_mainWindow)->showTitleSequence();
|
((FrameWindow *)_mainWindow)->showTitleSequence();
|
||||||
|
@ -79,6 +79,7 @@ bool TitleSequenceWindow::playTitleSequence() {
|
|||||||
|
|
||||||
_currentMovie->setWindowPos(0, 195, 115, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
_currentMovie->setWindowPos(0, 195, 115, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
||||||
_currentMovie->enableWindow(false);
|
_currentMovie->enableWindow(false);
|
||||||
|
_currentMovie->showWindow(kWindowShow);
|
||||||
_currentMovie->playVideo();
|
_currentMovie->playVideo();
|
||||||
_currentAnimation = 1;
|
_currentAnimation = 1;
|
||||||
return true;
|
return true;
|
||||||
@ -97,6 +98,7 @@ bool TitleSequenceWindow::playTitleSequence() {
|
|||||||
|
|
||||||
_currentMovie->setWindowPos(0, 200, 60, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
_currentMovie->setWindowPos(0, 200, 60, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
||||||
_currentMovie->enableWindow(false);
|
_currentMovie->enableWindow(false);
|
||||||
|
_currentMovie->showWindow(kWindowShow);
|
||||||
_currentMovie->playVideo();
|
_currentMovie->playVideo();
|
||||||
_currentAnimation = 2;
|
_currentAnimation = 2;
|
||||||
return true;
|
return true;
|
||||||
@ -114,6 +116,7 @@ bool TitleSequenceWindow::playTitleSequence() {
|
|||||||
|
|
||||||
_currentMovie->setWindowPos(0, 60, 138, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
_currentMovie->setWindowPos(0, 60, 138, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
||||||
_currentMovie->enableWindow(false);
|
_currentMovie->enableWindow(false);
|
||||||
|
_currentMovie->showWindow(kWindowShow);
|
||||||
invalidateWindow();
|
invalidateWindow();
|
||||||
_currentMovie->playVideo();
|
_currentMovie->playVideo();
|
||||||
_currentAnimation = 3;
|
_currentAnimation = 3;
|
||||||
|
@ -37,7 +37,7 @@ struct Message;
|
|||||||
|
|
||||||
class Window {
|
class Window {
|
||||||
public:
|
public:
|
||||||
Window(BuriedEngine *vm, Window *parent, bool visible = true);
|
Window(BuriedEngine *vm, Window *parent, bool visible = false);
|
||||||
virtual ~Window();
|
virtual ~Window();
|
||||||
|
|
||||||
// The message types used by Buried in Time's windows
|
// The message types used by Buried in Time's windows
|
||||||
|
Loading…
Reference in New Issue
Block a user