ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_WindowHack.c
(Generate patch)

Comparing Daodan/src/Daodan_WindowHack.c (file contents):
Revision 677 by alloc, Sat Mar 2 23:46:33 2013 UTC vs.
Revision 689 by alloc, Mon Mar 4 15:52:19 2013 UTC

# Line 7 | Line 7
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;
# Line 64 | Line 64 | DWORD WINAPI DDrHack_WndMain(LPVOID para
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;
# Line 160 | Line 160 | BOOL WINAPI LIiP_SetCursorPosHook(int X,
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)