Update isle.cpp

Adding some extra comments for bugs and weird things in the game.
This commit is contained in:
CB-XCVS 2023-06-11 12:41:46 -07:00 committed by GitHub
parent 9520b5a7e9
commit 6a51f243b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ void Isle::setupVideoFlags(BOOL fullScreen, BOOL flipSurfaces, BOOL backBuffers,
BOOL Isle::setupLegoOmni() BOOL Isle::setupLegoOmni()
{ {
char mediaPath[256]; char mediaPath[256];
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256); GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256); // <- Checks the win.ini file? (The game was released in 1997, but this method has been incorrect since 1990)
if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) { if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
VariableTable()->SetVariable("ACTOR_01", ""); VariableTable()->SetVariable("ACTOR_01", "");
@ -501,7 +501,10 @@ MxResult Isle::setupWindow(HINSTANCE hInstance)
AdjustWindowRectEx(&windowRect, WS_CAPTION | WS_SYSMENU, 0, WS_EX_APPWINDOW); AdjustWindowRectEx(&windowRect, WS_CAPTION | WS_SYSMENU, 0, WS_EX_APPWINDOW);
height = windowRect.bottom - windowRect.top; height = windowRect.bottom - windowRect.top;
width = windowRect.right - windowRect.left; width = windowRect.right - windowRect.left;
dwStyle = WS_CAPTION | WS_SYSMENU; dwStyle = WS_CAPTION | WS_SYSMENU; // <- Causes the white bar in full screen mode
// Change to WS_POPUP to remove title bar and fix the bug from full screen mode.
// Known to occur on Windows 10. May occur on Windows 11 also.
// Can also be fixed using LEGO Island Rebuilder.
x = windowRect.left; x = windowRect.left;
y = windowRect.top; y = windowRect.top;
} }