mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-08 10:00:36 +00:00
Fix/change some Windows define
This commit is contained in:
parent
1c44368f0a
commit
7fea567eb2
3 changed files with 30 additions and 38 deletions
|
@ -313,34 +313,6 @@ psNativeTextureSupport(void)
|
|||
return RwD3D8DeviceSupportsDXTTexture();
|
||||
}
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
*/
|
||||
static BOOL
|
||||
InitApplication(HANDLE instance)
|
||||
{
|
||||
/*
|
||||
* Perform any necessary MS Windows application initialization. Basically,
|
||||
* this means registering the window class for this application.
|
||||
*/
|
||||
|
||||
WNDCLASS windowClass;
|
||||
|
||||
windowClass.style = CS_BYTEALIGNWINDOW;
|
||||
windowClass.lpfnWndProc = (WNDPROC) MainWndProc;
|
||||
windowClass.cbClsExtra = 0;
|
||||
windowClass.cbWndExtra = 0;
|
||||
windowClass.hInstance = (HINSTANCE)instance;
|
||||
windowClass.hIcon = nil;
|
||||
windowClass.hCursor = LoadCursor(nil, IDC_ARROW);
|
||||
windowClass.hbrBackground = nil;
|
||||
windowClass.lpszMenuName = NULL;
|
||||
windowClass.lpszClassName = AppClassName;
|
||||
|
||||
return RegisterClass(&windowClass);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
*/
|
||||
|
@ -1305,6 +1277,33 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
return DefWindowProc(window, message, wParam, lParam);
|
||||
}
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
*/
|
||||
static BOOL
|
||||
InitApplication(HANDLE instance)
|
||||
{
|
||||
/*
|
||||
* Perform any necessary MS Windows application initialization. Basically,
|
||||
* this means registering the window class for this application.
|
||||
*/
|
||||
|
||||
WNDCLASS windowClass;
|
||||
|
||||
windowClass.style = CS_BYTEALIGNWINDOW;
|
||||
windowClass.lpfnWndProc = (WNDPROC)MainWndProc;
|
||||
windowClass.cbClsExtra = 0;
|
||||
windowClass.cbWndExtra = 0;
|
||||
windowClass.hInstance = (HINSTANCE)instance;
|
||||
windowClass.hIcon = nil;
|
||||
windowClass.hCursor = LoadCursor(nil, IDC_ARROW);
|
||||
windowClass.hbrBackground = nil;
|
||||
windowClass.lpszMenuName = NULL;
|
||||
windowClass.lpszClassName = AppClassName;
|
||||
|
||||
return RegisterClass(&windowClass);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
|
|
|
@ -68,9 +68,6 @@ extern "C"
|
|||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
extern LRESULT CALLBACK
|
||||
MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
#ifdef __DINPUT_INCLUDED__
|
||||
HRESULT _InputInitialise();
|
||||
HRESULT CapturePad(RwInt32 padID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue