1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

Remove unused winpos stuff

This commit is contained in:
Toni Spets 2010-11-17 18:55:57 +02:00
parent f092dd601a
commit c940464de2
2 changed files with 0 additions and 13 deletions

12
main.c
View File

@ -348,18 +348,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
} }
} }
break; break;
case WM_MOVE:
ddraw->winpos.x = LOWORD(lParam);
ddraw->winpos.y = HIWORD(lParam);
if(ddraw->winpos.x < 0)
{
ddraw->winpos.x = 0;
}
if(ddraw->winpos.y < 0)
{
ddraw->winpos.y = 0;
}
break;
} }
return ddraw->WndProc(hWnd, uMsg, wParam, lParam); return ddraw->WndProc(hWnd, uMsg, wParam, lParam);

1
main.h
View File

@ -66,7 +66,6 @@ typedef struct IDirectDrawImpl
HWND hWnd; HWND hWnd;
LRESULT CALLBACK (*WndProc)(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK (*WndProc)(HWND, UINT, WPARAM, LPARAM);
POINT winpos;
struct { float x; float y; } cursor; struct { float x; float y; } cursor;
POINT center; POINT center;
RECT cursorclip; RECT cursorclip;