comparison mm7_2.cpp @ 832:dfd683c4f538

Hotkeys fixed Moved GUIButton.h to GUIWindow.h
author Nomad
date Wed, 27 Mar 2013 19:50:37 +0200
parents 9c3f28b31b4a
children b66abf8b7d50
comparison
equal deleted inserted replaced
831:9c3f28b31b4a 832:dfd683c4f538
3 #include <assert.h> 3 #include <assert.h>
4 4
5 #include "MapInfo.h" 5 #include "MapInfo.h"
6 #include "Game.h" 6 #include "Game.h"
7 #include "GUIWindow.h" 7 #include "GUIWindow.h"
8 #include "GUIButton.h"
9 #include "GUIFont.h" 8 #include "GUIFont.h"
10 #include "Party.h" 9 #include "Party.h"
11 #include "AudioPlayer.h" 10 #include "AudioPlayer.h"
12 #include "Outdoor.h" 11 #include "Outdoor.h"
13 #include "IndoorCamera.h" 12 #include "IndoorCamera.h"
291 const char *result; // eax@19 290 const char *result; // eax@19
292 291
293 uDialogueType = 83; 292 uDialogueType = 83;
294 pDialogueWindow->Release(); 293 pDialogueWindow->Release();
295 pDialogueWindow = GUIWindow::Create(0, 0, 640, 350, WINDOW_MainMenu, 0, 0); 294 pDialogueWindow = GUIWindow::Create(0, 0, 640, 350, WINDOW_MainMenu, 0, 0);
296 pBtn_ExitCancel = pDialogueWindow->CreateButton(471u, 445u, 169u, 35u, 1, 0, 0x71u, 0, 0, pGlobalTXT_LocalizationStrings[34],// "Cancel" 295 pBtn_ExitCancel = pDialogueWindow->CreateButton(471u, 445u, 169u, 35u, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[34],// "Cancel"
297 (Texture *)(uExitCancelTextureId != -1 ? &pIcons_LOD->pTextures[uExitCancelTextureId] : 0), 0); 296 (Texture *)(uExitCancelTextureId != -1 ? &pIcons_LOD->pTextures[uExitCancelTextureId] : 0), 0);
298 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, 0x51u, 0, 0, "", 0); 297 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0);
299 pDialogueWindow->CreateButton(480u, 160u, 140u, 30u, 1, 0, 0, 0x53u, 0, "", 0); 298 pDialogueWindow->CreateButton(480u, 160u, 140u, 30u, 1, 0, UIMSG_0, 0x53u, 0, "", 0);
300 pDialogueWindow->_41D08F(1, 1, 0, 2); 299 pDialogueWindow->_41D08F(1, 1, 0, 2);
301 dialog_menu_id = HOUSE_DIALOGUE_OTHER; 300 dialog_menu_id = HOUSE_DIALOGUE_OTHER;
302 v0 = (int)((char *)window_SpeakInHouse->ptr_1C - 102); 301 v0 = (int)((char *)window_SpeakInHouse->ptr_1C - 102);
303 if ( (signed __int64)__PAIR__(pParty->field_3C.field_0[2 * v0 + 1], pParty->field_3C.field_0[2 * v0]) < (signed __int64)pParty->uTimePlayed ) 302 if ( (signed __int64)__PAIR__(pParty->field_3C.field_0[2 * v0 + 1], pParty->field_3C.field_0[2 * v0]) < (signed __int64)pParty->uTimePlayed )
304 { 303 {
434 while ( v6 ); 433 while ( v6 );
435 } 434 }
436 pDialogueWindow->pControlsHead = 0; 435 pDialogueWindow->pControlsHead = 0;
437 pDialogueWindow->pControlsTail = 0; 436 pDialogueWindow->pControlsTail = 0;
438 pDialogueWindow->uNumControls = 0; 437 pDialogueWindow->uNumControls = 0;
439 pBtn_ExitCancel = pDialogueWindow->CreateButton(0x1D7u, 0x1BDu, 0xA9u, 0x23u, 1, 0, 0x71u, 0, 0, pGlobalTXT_LocalizationStrings[79], 438 pBtn_ExitCancel = pDialogueWindow->CreateButton(0x1D7u, 0x1BDu, 0xA9u, 0x23u, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79],
440 (Texture *)(uExitCancelTextureId != -1 ? (int)&pIcons_LOD->pTextures[uExitCancelTextureId] : 0), 0); 439 (Texture *)(uExitCancelTextureId != -1 ? (int)&pIcons_LOD->pTextures[uExitCancelTextureId] : 0), 0);
441 pDialogueWindow->CreateButton(0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, 0x88u, 0x55u, 0, "", 0); 440 pDialogueWindow->CreateButton(0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x55u, 0, "", 0);
442 pDialogueWindow->CreateButton(0x1E0u, 0xBEu, 0x8Cu, 0x1Eu, 1, 0, 0x88u, 0x56u, 0, "", 0); 441 pDialogueWindow->CreateButton(0x1E0u, 0xBEu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x56u, 0, "", 0);
443 pDialogueWindow->CreateButton(0x1E0u, 0xDCu, 0x8Cu, 0x1Eu, 1, 0, 0x88u, 0x57u, 0, "", 0); 442 pDialogueWindow->CreateButton(0x1E0u, 0xDCu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x57u, 0, "", 0);
444 pDialogueWindow->CreateButton(0x1E0u, 0xFAu, 0x8Cu, 0x1Eu, 1, 0, 0x88u, 0x58u, 0, "", 0); 443 pDialogueWindow->CreateButton(0x1E0u, 0xFAu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x58u, 0, "", 0);
445 pDialogueWindow->_41D08F(4, 1, 0, 1); 444 pDialogueWindow->_41D08F(4, 1, 0, 1);
446 } 445 }
447 } 446 }
448 // F8B1B4: using guessed type int dword_F8B1B4; 447 // F8B1B4: using guessed type int dword_F8B1B4;
449 448
806 //----- (004BCA33) -------------------------------------------------------- 805 //----- (004BCA33) --------------------------------------------------------
807 void UI_CreateEndConversationButton() 806 void UI_CreateEndConversationButton()
808 { 807 {
809 pDialogueWindow->Release(); 808 pDialogueWindow->Release();
810 pDialogueWindow = GUIWindow::Create(0, 0, 640, 345, WINDOW_MainMenu, 0, 0); 809 pDialogueWindow = GUIWindow::Create(0, 0, 640, 345, WINDOW_MainMenu, 0, 0);
811 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, 0x71u, 0, 0, 810 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0,
812 pGlobalTXT_LocalizationStrings[74], //"End Conversation" 811 pGlobalTXT_LocalizationStrings[74], //"End Conversation"
813 pIcons_LOD->GetTexture(uExitCancelTextureId), 0); 812 pIcons_LOD->GetTexture(uExitCancelTextureId), 0);
814 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, 0x51u, 0, 0, "", 0); 813 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0);
815 } 814 }
816 815
817 //----- (004BD8B5) -------------------------------------------------------- 816 //----- (004BD8B5) --------------------------------------------------------
818 signed int __cdecl sub_4BD8B5() 817 signed int __cdecl sub_4BD8B5()
819 { 818 {
896 { 895 {
897 //v3 = byte_591180; 896 //v3 = byte_591180;
898 do 897 do
899 { 898 {
900 HouseNPCData[v2 + 7] = (NPCData *)window_SpeakInHouse->CreateButton(pNPCPortraits_x[v1 - 1][v2], pNPCPortraits_y[v1 - 1][v2], 899 HouseNPCData[v2 + 7] = (NPCData *)window_SpeakInHouse->CreateButton(pNPCPortraits_x[v1 - 1][v2], pNPCPortraits_y[v1 - 1][v2],
901 0x3Fu, 0x49u, 1, 0, 0x19Au, v2, 0, byte_591180[v2], 0, 0, 0); 900 0x3Fu, 0x49u, 1, 0, UIMSG_19A, v2, 0, byte_591180[v2], 0, 0, 0);
902 v1 = uNumDialogueNPCPortraits; 901 v1 = uNumDialogueNPCPortraits;
903 ++v2; 902 ++v2;
904 //v3 += 100; 903 //v3 += 100;
905 } 904 }
906 while ( (signed int)v2 < uNumDialogueNPCPortraits ); 905 while ( (signed int)v2 < uNumDialogueNPCPortraits );
6939 { 6938 {
6940 if ( pt.x >= (signed int)pButton->uX && pt.x <= (signed int)pButton->uZ 6939 if ( pt.x >= (signed int)pButton->uX && pt.x <= (signed int)pButton->uZ
6941 && pt.y >= (signed int)pButton->uY && pt.y <= (signed int)pButton->uW 6940 && pt.y >= (signed int)pButton->uY && pt.y <= (signed int)pButton->uW
6942 && pWindow == pWindow_MainMenu ) 6941 && pWindow == pWindow_MainMenu )
6943 { 6942 {
6944 pControlParam = pButton->uControlParam; 6943 pControlParam = pButton->msg_param;
6945 switch (pControlParam) // подсветка кнопок 6944 switch (pControlParam) // подсветка кнопок
6946 { 6945 {
6947 case 0: 6946 case 0:
6948 pTexture = pNew; 6947 pTexture = pNew;
6949 pY = 172; 6948 pY = 172;
6986 } 6985 }
6987 6986
6988 //----- (004637EB) -------------------------------------------------------- 6987 //----- (004637EB) --------------------------------------------------------
6989 int __stdcall aWinProc(HWND hWnd, UINT Msg, WPARAM wParam, unsigned int lParam) 6988 int __stdcall aWinProc(HWND hWnd, UINT Msg, WPARAM wParam, unsigned int lParam)
6990 { 6989 {
6991 unsigned int v4; // esi@1 6990 //unsigned int v4; // esi@1
6992 Render *v5; // ecx@14 6991 Render *v5; // ecx@14
6993 HANDLE v6; // eax@32 6992 HANDLE v6; // eax@32
6994 Keyboard *v7; // eax@33 6993 Keyboard *v7; // eax@33
6995 //HDC v9; // edi@41 6994 //HDC v9; // edi@41
6996 HDC v10; // edi@50 6995 HDC v10; // edi@50
7027 int a2; // [sp+7Ch] [bp+10h]@50 7026 int a2; // [sp+7Ch] [bp+10h]@50
7028 7027
7029 switch (Msg) 7028 switch (Msg)
7030 { 7029 {
7031 case WM_SETTEXT: return DefWindowProcW(hWnd, Msg, wParam, lParam); 7030 case WM_SETTEXT: return DefWindowProcW(hWnd, Msg, wParam, lParam);
7031 case WM_CHAR:
7032 {
7033 if (!pKeyActionMap->_459F10(wParam) && !viewparams->field_4C)
7034 GUI_HandleHotkey(wParam);
7035 }
7036 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7032 }; 7037 };
7033 7038
7034 7039
7035 v4 = lParam;
7036 if ( Msg > WM_SYSCOMMAND ) 7040 if ( Msg > WM_SYSCOMMAND )
7037 { 7041 {
7038 switch ( Msg ) 7042 switch ( Msg )
7039 { 7043 {
7040 default: 7044 default:
7088 { 7092 {
7089 LABEL_218: 7093 LABEL_218:
7090 if ( pAsyncMouse != v32 ) 7094 if ( pAsyncMouse != v32 )
7091 goto _def_wnd_proc; 7095 goto _def_wnd_proc;
7092 back_to_game(); 7096 back_to_game();
7093 return DefWindowProcA(hWnd, Msg, wParam, v4); 7097 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7094 } 7098 }
7095 if (pAsyncMouse) 7099 if (pAsyncMouse)
7096 goto _def_wnd_proc; 7100 goto _def_wnd_proc;
7097 pArcomageGame->stru1.field_0 = 4; 7101 pArcomageGame->stru1.field_0 = 4;
7098 v29 = 0; 7102 v29 = 0;
7102 if ( pArcomageGame->bGameInProgress ) 7106 if ( pArcomageGame->bGameInProgress )
7103 { 7107 {
7104 if (pAsyncMouse) 7108 if (pAsyncMouse)
7105 goto _def_wnd_proc; 7109 goto _def_wnd_proc;
7106 pArcomageGame->stru1.field_0 = 7; 7110 pArcomageGame->stru1.field_0 = 7;
7107 return DefWindowProcA(hWnd, Msg, wParam, v4); 7111 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7108 } 7112 }
7109 if ( pVideoPlayer->pVideoFrame.pPixels ) 7113 if ( pVideoPlayer->pVideoFrame.pPixels )
7110 pVideoPlayer->bStopBeforeSchedule = 1; 7114 pVideoPlayer->bStopBeforeSchedule = 1;
7111 if ( !pAsyncMouse ) 7115 if ( !pAsyncMouse )
7112 pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16); 7116 pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16);
7127 pGame->PickMouse(512.0, (unsigned __int16)lParam, lParam >> 16, v28, &vis_sprite_filter_3, &vis_door_filter); 7131 pGame->PickMouse(512.0, (unsigned __int16)lParam, lParam >> 16, v28, &vis_sprite_filter_3, &vis_door_filter);
7128 } 7132 }
7129 if ( pAsyncMouse == (void *)v28 ) 7133 if ( pAsyncMouse == (void *)v28 )
7130 { 7134 {
7131 UI_OnMouseLeftClick(0); 7135 UI_OnMouseLeftClick(0);
7132 return DefWindowProcA(hWnd, Msg, wParam, v4); 7136 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7133 } 7137 }
7134 goto _def_wnd_proc; 7138 goto _def_wnd_proc;
7135 case WM_RBUTTONDBLCLK: 7139 case WM_RBUTTONDBLCLK:
7136 v31 = 0; 7140 v31 = 0;
7137 if ( !pArcomageGame->bGameInProgress ) 7141 if ( !pArcomageGame->bGameInProgress )
7149 pGame->PickMouse(v33, (unsigned __int16)lParam, lParam >> 16, v31, &vis_sprite_filter_2, &vis_door_filter); 7153 pGame->PickMouse(v33, (unsigned __int16)lParam, lParam >> 16, v31, &vis_sprite_filter_2, &vis_door_filter);
7150 } 7154 }
7151 if (!pAsyncMouse) 7155 if (!pAsyncMouse)
7152 { 7156 {
7153 sub_416D62_ShowPopupWindow_MonsterRecord_ItemInfo_etcsub_416D62(0); 7157 sub_416D62_ShowPopupWindow_MonsterRecord_ItemInfo_etcsub_416D62(0);
7154 return DefWindowProcA(hWnd, Msg, wParam, v4); 7158 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7155 } 7159 }
7156 goto _def_wnd_proc; 7160 goto _def_wnd_proc;
7157 } 7161 }
7158 if (pAsyncMouse) 7162 if (pAsyncMouse)
7159 goto _def_wnd_proc; 7163 goto _def_wnd_proc;
7160 pArcomageGame->stru1.field_0 = 8; 7164 pArcomageGame->stru1.field_0 = 8;
7161 return DefWindowProcA(hWnd, Msg, wParam, v4); 7165 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7162 case WM_MBUTTONDOWN: 7166 case WM_MBUTTONDOWN:
7163 if ( pRenderer->pRenderD3D ) 7167 if ( pRenderer->pRenderD3D )
7164 { 7168 {
7165 if ( pGame && !pAsyncMouse ) 7169 if ( pGame && !pAsyncMouse )
7166 { 7170 {
7167 v34 = GetPickDepth(); 7171 v34 = GetPickDepth();
7168 pGame->PickMouse(v34, (unsigned __int16)lParam, lParam >> 16, 1, &vis_sprite_filter_3, &vis_face_filter); 7172 pGame->PickMouse(v34, (unsigned __int16)lParam, lParam >> 16, 1, &vis_sprite_filter_3, &vis_face_filter);
7169 return DefWindowProcA(hWnd, Msg, wParam, v4); 7173 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7170 } 7174 }
7171 goto _def_wnd_proc; 7175 goto _def_wnd_proc;
7172 } 7176 }
7173 if ( !pGame ) 7177 if ( !pGame )
7174 goto _def_wnd_proc; 7178 goto _def_wnd_proc;
7175 sub_417871(0); 7179 sub_417871(0);
7176 return DefWindowProcA(hWnd, Msg, wParam, v4); 7180 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7177 case WM_MOUSEMOVE: 7181 case WM_MOUSEMOVE:
7178 if ( pArcomageGame->bGameInProgress ) 7182 if ( pArcomageGame->bGameInProgress )
7179 { 7183 {
7180 if (pAsyncMouse) 7184 if (pAsyncMouse)
7181 goto _def_wnd_proc; 7185 goto _def_wnd_proc;
7193 { 7197 {
7194 if (pAsyncMouse) 7198 if (pAsyncMouse)
7195 goto _def_wnd_proc; 7199 goto _def_wnd_proc;
7196 pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16); 7200 pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16);
7197 } 7201 }
7198 return DefWindowProcA(hWnd, Msg, wParam, v4); 7202 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7199 } 7203 }
7200 } 7204 }
7201 if ( Msg == WM_SYSCOMMAND ) 7205 if ( Msg == WM_SYSCOMMAND )
7202 { 7206 {
7203 if ( wParam == SC_SCREENSAVE || wParam == SC_MONITORPOWER ) 7207 if ( wParam == SC_SCREENSAVE || wParam == SC_MONITORPOWER )
7211 if (pVideoPlayer) 7215 if (pVideoPlayer)
7212 { 7216 {
7213 if (pVideoPlayer->AnyMovieLoaded() && pVideoPlayer->pBinkBuffer) 7217 if (pVideoPlayer->AnyMovieLoaded() && pVideoPlayer->pBinkBuffer)
7214 { 7218 {
7215 BinkBufferSetOffset(pVideoPlayer->pBinkBuffer, 0, 0); 7219 BinkBufferSetOffset(pVideoPlayer->pBinkBuffer, 0, 0);
7216 return DefWindowProcA(hWnd, Msg, wParam, v4); 7220 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7217 } 7221 }
7218 } 7222 }
7219 goto _def_wnd_proc; 7223 goto _def_wnd_proc;
7220 } 7224 }
7221 if ( Msg != WM_KEYFIRST ) 7225 if ( Msg != WM_KEYFIRST )
7223 if ( Msg == WM_KEYUP ) 7227 if ( Msg == WM_KEYUP )
7224 { 7228 {
7225 if ( wParam == VK_CONTROL ) 7229 if ( wParam == VK_CONTROL )
7226 { 7230 {
7227 dword_507B98_ctrl_pressed = 0; 7231 dword_507B98_ctrl_pressed = 0;
7228 return DefWindowProcA(hWnd, Msg, wParam, v4); 7232 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7229 }
7230 goto _def_wnd_proc;
7231 }
7232 if ( Msg == WM_CHAR )
7233 {
7234 if ( !pKeyActionMap->_459F10(wParam) && !viewparams->field_4C )
7235 {
7236 GUI_HandleHotkey(wParam);
7237 return DefWindowProcA(hWnd, Msg, wParam, v4);
7238 } 7233 }
7239 goto _def_wnd_proc; 7234 goto _def_wnd_proc;
7240 } 7235 }
7241 if ( Msg != WM_COMMAND ) 7236 if ( Msg != WM_COMMAND )
7242 goto _def_wnd_proc; 7237 goto _def_wnd_proc;
7253 if ( pArcomageGame->bGameInProgress ) 7248 if ( pArcomageGame->bGameInProgress )
7254 pArcomageGame->field_F6 = 1; 7249 pArcomageGame->field_F6 = 1;
7255 return 0; 7250 return 0;
7256 } 7251 }
7257 if ( wParam != 40001 ) 7252 if ( wParam != 40001 )
7258 return DefWindowProcA(hWnd, Msg, wParam, v4); 7253 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7259 } 7254 }
7260 v38 = 0; 7255 v38 = 0;
7261 v37 = 0; 7256 v37 = 0;
7262 v36 = 2; 7257 v36 = 2;
7263 v35 = ::hWnd; 7258 v35 = ::hWnd;
7266 return 0; 7261 return 0;
7267 } 7262 }
7268 if ( dword_506E68 != -1 ) 7263 if ( dword_506E68 != -1 )
7269 { 7264 {
7270 pKeyActionMap->_459F10(wParam); 7265 pKeyActionMap->_459F10(wParam);
7271 return DefWindowProcA(hWnd, Msg, wParam, v4); 7266 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7272 } 7267 }
7273 if ( !pArcomageGame->bGameInProgress ) 7268 if ( !pArcomageGame->bGameInProgress )
7274 { 7269 {
7275 if ( pVideoPlayer->pVideoFrame.pPixels ) 7270 if ( pVideoPlayer->pVideoFrame.pPixels )
7276 pVideoPlayer->bStopBeforeSchedule = 1; 7271 pVideoPlayer->bStopBeforeSchedule = 1;
7596 SetWindowPos(::hWnd, (HWND)0xFFFFFFFE, 0, 0, 0, 0, 0x18u); 7591 SetWindowPos(::hWnd, (HWND)0xFFFFFFFE, 0, 0, 0, 0, 0x18u);
7597 ClipCursor(0); 7592 ClipCursor(0);
7598 if (pAsyncMouse) 7593 if (pAsyncMouse)
7599 { 7594 {
7600 pAsyncMouse->Suspend(); 7595 pAsyncMouse->Suspend();
7601 return DefWindowProcA(hWnd, Msg, wParam, v4); 7596 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7602 } 7597 }
7603 } 7598 }
7604 _def_wnd_proc: 7599 _def_wnd_proc:
7605 v4 = lParam; 7600 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7606 return DefWindowProcA(hWnd, Msg, wParam, v4);
7607 } 7601 }
7608 if ( Msg != WM_KILLFOCUS ) 7602 if ( Msg != WM_KILLFOCUS )
7609 { 7603 {
7610 if ( Msg == WM_PAINT ) 7604 if ( Msg == WM_PAINT )
7611 { 7605 {
7629 return 0; 7623 return 0;
7630 } 7624 }
7631 goto _def_wnd_proc; 7625 goto _def_wnd_proc;
7632 } 7626 }
7633 if ( ::hWnd != (HWND)wParam || (dword_4E98BC_bApplicationActive = 1, pRenderer->bWindowMode) || !pAsyncMouse ) 7627 if ( ::hWnd != (HWND)wParam || (dword_4E98BC_bApplicationActive = 1, pRenderer->bWindowMode) || !pAsyncMouse )
7634 return DefWindowProcA(hWnd, Msg, wParam, v4); 7628 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7635 pAsyncMouse->Resume(); 7629 pAsyncMouse->Resume();
7636 if ( !pAsyncMouse ) 7630 if ( !pAsyncMouse )
7637 goto _def_wnd_proc; 7631 goto _def_wnd_proc;
7638 pAsyncMouse->Clip(); 7632 pAsyncMouse->Clip();
7639 return DefWindowProcA(hWnd, Msg, wParam, v4); 7633 return DefWindowProcA(hWnd, Msg, wParam, lParam);
7640 } 7634 }
7641 7635
7642 //----- (00464479) -------------------------------------------------------- 7636 //----- (00464479) --------------------------------------------------------
7643 void __cdecl ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows() 7637 void __cdecl ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows()
7644 { 7638 {