minor adjustments

This commit is contained in:
itsmattkc 2023-06-18 21:40:53 -07:00
parent 2516ce7e0e
commit dea94c5cfb
3 changed files with 8 additions and 5 deletions

View File

@ -396,7 +396,9 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
switch (uMsg) {
case WM_KEYDOWN:
if (HIWORD(lParam) & KF_REPEAT) {
// While this probably should be (HIWORD(lParam) & KF_REPEAT), this seems
// to be what the assembly is actually doing
if (lParam & (KF_REPEAT << 16)) {
return DefWindowProcA(hWnd, WM_KEYDOWN, wParam, lParam);
}
keyCode = wParam;

View File

@ -52,7 +52,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
// Throw error if sound unavailable
if (!soundReady) {
MessageBoxA(NULL, "\"LEGO\xAE Island\" is not detecting a DirectSound compatible sound card. Please quit all other applications and try again.",
"Lego Island Error", MB_OK | MB_APPLMODAL);
"Lego Island Error", MB_OK);
return 0;
}
@ -61,7 +61,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
// Create window
if (g_isle->setupWindow(hInstance) != SUCCESS) {
MessageBoxA(NULL, "\"LEGO\xAE Island\" failed to start. Please quit all other applications and try again.", "LEGO\xAE Island Error", MB_OK | MB_APPLMODAL);
MessageBoxA(NULL, "\"LEGO\xAE Island\" failed to start. Please quit all other applications and try again.", "LEGO\xAE Island Error", MB_OK);
return 0;
}

View File

@ -47,8 +47,9 @@ class MxDSAction
int m_unk8c;
int m_unk90;
void setAtomId(MxAtomId &atomId) {
this->m_atomId = atomId;
void setAtomId(MxAtomId &atomId)
{
this->m_atomId = atomId;
}
};