mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-17 13:31:15 +00:00
minor adjustments
This commit is contained in:
parent
2516ce7e0e
commit
dea94c5cfb
@ -396,7 +396,9 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
switch (uMsg) {
|
switch (uMsg) {
|
||||||
case WM_KEYDOWN:
|
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);
|
return DefWindowProcA(hWnd, WM_KEYDOWN, wParam, lParam);
|
||||||
}
|
}
|
||||||
keyCode = wParam;
|
keyCode = wParam;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
// Throw error if sound unavailable
|
// Throw error if sound unavailable
|
||||||
if (!soundReady) {
|
if (!soundReady) {
|
||||||
MessageBoxA(NULL, "\"LEGO\xAE Island\" is not detecting a DirectSound compatible sound card. Please quit all other applications and try again.",
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
|
|
||||||
// Create window
|
// Create window
|
||||||
if (g_isle->setupWindow(hInstance) != SUCCESS) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,8 +47,9 @@ class MxDSAction
|
|||||||
int m_unk8c;
|
int m_unk8c;
|
||||||
int m_unk90;
|
int m_unk90;
|
||||||
|
|
||||||
void setAtomId(MxAtomId &atomId) {
|
void setAtomId(MxAtomId &atomId)
|
||||||
this->m_atomId = atomId;
|
{
|
||||||
|
this->m_atomId = atomId;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user