diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-25 14:24:24 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-25 14:24:24 +0200 |
commit | 7fea567eb27c033cc1d93c248dd4919bce59c998 (patch) | |
tree | ad16ee18d7e29b51b57c109470c66e4c95d7fa9c /src/skel/win | |
parent | fixed hanim for 64 bit (diff) | |
download | re3-7fea567eb27c033cc1d93c248dd4919bce59c998.tar re3-7fea567eb27c033cc1d93c248dd4919bce59c998.tar.gz re3-7fea567eb27c033cc1d93c248dd4919bce59c998.tar.bz2 re3-7fea567eb27c033cc1d93c248dd4919bce59c998.tar.lz re3-7fea567eb27c033cc1d93c248dd4919bce59c998.tar.xz re3-7fea567eb27c033cc1d93c248dd4919bce59c998.tar.zst re3-7fea567eb27c033cc1d93c248dd4919bce59c998.zip |
Diffstat (limited to 'src/skel/win')
-rw-r--r-- | src/skel/win/win.cpp | 55 | ||||
-rw-r--r-- | src/skel/win/win.h | 3 |
2 files changed, 27 insertions, 31 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index a2673ccb..75a3a7c9 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -316,34 +316,6 @@ psNativeTextureSupport(void) /* ***************************************************************************** */ -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); -} - - -/* - ***************************************************************************** - */ static HWND InitInstance(HANDLE instance) { @@ -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); +} + /* ***************************************************************************** diff --git a/src/skel/win/win.h b/src/skel/win/win.h index 4b2001f8..be840898 100644 --- a/src/skel/win/win.h +++ b/src/skel/win/win.h @@ -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); |