mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 07:28:00 -05:00
improved accuracy of call to LegoOmni::Create
This commit is contained in:
parent
bc56f56da9
commit
4570487067
1 changed files with 1 additions and 3 deletions
|
@ -249,9 +249,7 @@ BOOL Isle::setupLegoOmni()
|
||||||
char mediaPath[256];
|
char mediaPath[256];
|
||||||
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256);
|
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256);
|
||||||
|
|
||||||
MxOmniCreateParam createParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags());
|
if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
|
||||||
|
|
||||||
if (Lego()->Create(createParam) != FAILURE) {
|
|
||||||
VariableTable()->SetVariable("ACTOR_01", "");
|
VariableTable()->SetVariable("ACTOR_01", "");
|
||||||
TickleManager()->vtable1c(VideoManager(), 10);
|
TickleManager()->vtable1c(VideoManager(), 10);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue