7 |
|
#include "BFW_Motoko_Draw.h" |
8 |
|
#include "oni_gl.h" |
9 |
|
|
10 |
< |
#define CS_DROPSHADOW 0x20000 |
10 |
> |
#define DD_CS_DROPSHADOW 0x20000 |
11 |
|
|
12 |
|
volatile HWND onihwnd, boxhwnd = NULL; |
13 |
|
int inclient = 0; |
64 |
|
WNDCLASSEX wc; |
65 |
|
|
66 |
|
wc.cbSize = sizeof(WNDCLASSEX); |
67 |
< |
wc.style = (opt_border ? 0 : (opt_shadow ? CS_DROPSHADOW : 0)); |
67 |
> |
wc.style = (opt_border ? 0 : (opt_shadow ? DD_CS_DROPSHADOW : 0)); |
68 |
|
wc.lpfnWndProc = DDrHack_WndProc; |
69 |
|
wc.cbClsExtra = 0; |
70 |
|
wc.cbWndExtra = 0; |
160 |
|
void DDrWindowHack_Install() |
161 |
|
{ |
162 |
|
DDrPatch_NOOP((char*)0x0050F764, 6); |
163 |
< |
DDrPatch_MakeCall((char*)0x0050F764, ONrPI_CreateWindowExHook); |
163 |
> |
DDrPatch_MakeCall((char*)0x0050F764, (void*)ONrPI_CreateWindowExHook); |
164 |
|
|
165 |
|
DDrPatch_NOOP((char*)0x00407E9F, 6); |
166 |
< |
DDrPatch_MakeCall((char*)0x00407E9F, glpi_SetWindowPosHook); |
166 |
> |
DDrPatch_MakeCall((char*)0x00407E9F, (void*)glpi_SetWindowPosHook); |
167 |
|
|
168 |
|
DDrPatch_NOOP((char*)0x004032CC, 6); |
169 |
< |
DDrPatch_MakeCall((char*)0x004032CC, LIiP_GetCursorPosHook); |
169 |
> |
DDrPatch_MakeCall((char*)0x004032CC, (void*)LIiP_GetCursorPosHook); |
170 |
|
|
171 |
|
DDrPatch_NOOP((char*)0x00402CC2, 6); |
172 |
< |
DDrPatch_MakeCall((char*)0x00402CC2, LIiP_GetCursorPosHook); |
172 |
> |
DDrPatch_MakeCall((char*)0x00402CC2, (void*)LIiP_GetCursorPosHook); |
173 |
|
|
174 |
|
DDrPatch_NOOP((char*)0x004032B7, 6); |
175 |
< |
DDrPatch_MakeCall((char*)0x004032B7, LIiP_SetCursorPosHook); |
175 |
> |
DDrPatch_MakeCall((char*)0x004032B7, (void*)LIiP_SetCursorPosHook); |
176 |
|
|
177 |
|
DDrPatch_NOOP((char*)0x00403349, 6); |
178 |
< |
DDrPatch_MakeCall((char*)0x00403349, LIiP_SetCursorPosHook); |
178 |
> |
DDrPatch_MakeCall((char*)0x00403349, (void*)LIiP_SetCursorPosHook); |
179 |
|
} |