| 60 |
|
DWORD WINAPI DDrHack_WndMain(LPVOID param) |
| 61 |
|
{ |
| 62 |
|
MSG Msg; |
| 63 |
< |
|
| 63 |
> |
RECT re; |
| 64 |
|
WNDCLASSEX wc; |
| 65 |
|
|
| 66 |
|
wc.cbSize = sizeof(WNDCLASSEX); |
| 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; |
| 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; |
| 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 |
|
{ |