First take at real windowed mode, includes a hack for CnC and RA mouse

This commit is contained in:
Toni Spets 2010-10-24 01:02:08 +03:00
parent 7bb1168a90
commit 4e57e75652
6 changed files with 218 additions and 8 deletions

10
main.h
View file

@ -25,6 +25,8 @@
struct IDirectDrawImpl;
struct IDirectDrawImplVtbl;
extern struct IDirectDrawImpl *ddraw;
typedef struct IDirectDrawImpl
{
struct IDirectDrawImplVtbl *lpVtbl;
@ -36,6 +38,14 @@ typedef struct IDirectDrawImpl
DWORD bpp;
HWND hWnd;
LRESULT CALLBACK (*WndProc)(HWND, UINT, WPARAM, LPARAM);
POINT winpos;
POINT cursor;
RECT cursorclip;
BOOL locked;
BOOL key_ctrl;
BOOL key_alt;
HMODULE real_dll;
LPDIRECTDRAW real_ddraw;