Remove unused winpos stuff
This commit is contained in:
parent
f092dd601a
commit
c940464de2
2 changed files with 0 additions and 13 deletions
12
main.c
12
main.c
|
@ -348,18 +348,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
}
|
||||
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);
|
||||
|
|
1
main.h
1
main.h
|
@ -66,7 +66,6 @@ typedef struct IDirectDrawImpl
|
|||
|
||||
HWND hWnd;
|
||||
LRESULT CALLBACK (*WndProc)(HWND, UINT, WPARAM, LPARAM);
|
||||
POINT winpos;
|
||||
struct { float x; float y; } cursor;
|
||||
POINT center;
|
||||
RECT cursorclip;
|
||||
|
|
Loading…
Reference in a new issue