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 676 by rossy, Sun Oct 18 02:26:30 2009 UTC vs.
Revision 677 by alloc, Sat Mar 2 23:46:33 2013 UTC

# Line 60 | Line 60 | LRESULT CALLBACK DDrHack_WndProc(HWND hw
60   DWORD WINAPI DDrHack_WndMain(LPVOID param)
61   {
62          MSG Msg;
63 <        
63 >        RECT re;
64          WNDCLASSEX wc;
65          
66          wc.cbSize = sizeof(WNDCLASSEX);
# Line 77 | Line 77 | DWORD WINAPI DDrHack_WndMain(LPVOID para
77          wc.hIconSm = NULL;
78          RegisterClassEx(&wc);
79          
80 <        RECT re;
80 >        
81          re.left = (GetSystemMetrics(SM_CXSCREEN) / 2) - (640 / 2);
82          re.top = (GetSystemMetrics(SM_CYSCREEN) / 2) - (480 / 2);
83          re.right = re.left + 640;
# Line 108 | Line 108 | HWND WINAPI ONrPI_CreateWindowExHook(DWO
108  
109   BOOL WINAPI glpi_SetWindowPosHook(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags)
110   {
111 +        RECT re;
112          SetWindowLong(onihwnd, GWL_STYLE, WS_CHILD | WS_VISIBLE);
113          SetCursor(LoadCursor(NULL, IDC_ARROW));
114          
115 <        RECT re;
115 >        
116          re.left = (GetSystemMetrics(SM_CXSCREEN) / 2) - (cx / 2);
117          re.top = (GetSystemMetrics(SM_CYSCREEN) / 2) - (cy / 2);
118          re.right = re.left + cx;
# Line 128 | Line 129 | BOOL WINAPI LIiP_GetCursorPosHook(LPPOIN
129   {
130          if (GetAsyncKeyState(VK_F4) || dragging)
131          {
132 <                lpPoint->x = gl->DisplayMode.Width / 2;
133 <                lpPoint->y = gl->DisplayMode.Height / 2;
132 >                lpPoint->x = gl_eng->DisplayMode.Width / 2;
133 >                lpPoint->y = gl_eng->DisplayMode.Height / 2;
134          }
135          else
136          {

Diff Legend

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