comparison mm7_1.cpp @ 791:346f7069676a

Indoor::GetSector and various stuff
author Nomad
date Mon, 25 Mar 2013 05:27:18 +0200
parents 1e2be0f5eb30
children c232f160e6f3
comparison
equal deleted inserted replaced
790:1e2be0f5eb30 791:346f7069676a
56 int __stdcall aWinProc(HWND hWnd, UINT Msg, WPARAM wParam, unsigned int lParam); 56 int __stdcall aWinProc(HWND hWnd, UINT Msg, WPARAM wParam, unsigned int lParam);
57 int __stdcall InsertMM7CDDialogFunc(HWND hDlg, int a2, __int16 a3, int a4); 57 int __stdcall InsertMM7CDDialogFunc(HWND hDlg, int a2, __int16 a3, int a4);
58 bool __fastcall FindMM7CD(HWND hWnd, char *pCDDrive); 58 bool __fastcall FindMM7CD(HWND hWnd, char *pCDDrive);
59 bool __fastcall Initialize(HINSTANCE hInst, char *pCmdLine); 59 bool __fastcall Initialize(HINSTANCE hInst, char *pCmdLine);
60 60
61
62 //----- (004A1780) mm6_chinese---------------------------------------------
63 int fixpoint_div(int a1, int a2)
64 {
65 return ((__int64)a1 << 16) / a2;
66 }
67
61 //----- (004453C0) mm6----------------------------------------------------- 68 //----- (004453C0) mm6-----------------------------------------------------
62 //----- (004A1760) mm6_chinese--------------------------------------------- 69 //----- (004A1760) mm6_chinese---------------------------------------------
63 int fixpoint_mul(int a1, int a2) 70 int fixpoint_mul(int a1, int a2)
64 { 71 {
65 return ((__int64)a1 * a2) >> 16; 72 return ((__int64)a1 * (__int64)a2) / 65536;
66 } 73 }
67 74
68 //----- (004196A0) -------------------------------------------------------- 75 //----- (004196A0) --------------------------------------------------------
69 void __cdecl sub_4196A0() 76 void __cdecl sub_4196A0()
70 { 77 {