From 6a51f243b573b82c8c922945dacf85a25710a0ce Mon Sep 17 00:00:00 2001 From: CB-XCVS <103461412+CB-XCVS@users.noreply.github.com> Date: Sun, 11 Jun 2023 12:41:46 -0700 Subject: [PATCH] Update isle.cpp Adding some extra comments for bugs and weird things in the game. --- ISLE/isle.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ISLE/isle.cpp b/ISLE/isle.cpp index 61874225..c8247b82 100644 --- a/ISLE/isle.cpp +++ b/ISLE/isle.cpp @@ -250,7 +250,7 @@ void Isle::setupVideoFlags(BOOL fullScreen, BOOL flipSurfaces, BOOL backBuffers, BOOL Isle::setupLegoOmni() { 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) { VariableTable()->SetVariable("ACTOR_01", ""); @@ -501,7 +501,10 @@ MxResult Isle::setupWindow(HINSTANCE hInstance) AdjustWindowRectEx(&windowRect, WS_CAPTION | WS_SYSMENU, 0, WS_EX_APPWINDOW); height = windowRect.bottom - windowRect.top; 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; y = windowRect.top; }