Search found 3 matches

by bclarte
January 22nd, 2015, 8:22 pm
Forum: DXGL Development
Topic: War Gods - direct3d1
Replies: 4
Views: 49877

Re: War Gods - direct3d1

Sorry about this - wanted to PM you but don't have permission yet and can't edit post #2 either. :) Found out that replacing: //ShowWindow(This->hWnd,SW_MAXIMIZE); ShowWindow(This->hWnd,SW_NORMAL); //ShowWindow(newwnd,SW_MAXIMIZE); ShowWindow(newwnd,SW_NORMAL); fixes most of the weird clientrect pro...
by bclarte
January 22nd, 2015, 7:48 pm
Forum: DXGL Development
Topic: War Gods - direct3d1
Replies: 4
Views: 49877

Re: War Gods - direct3d1

I found some more info on why the screen is behaving wonky. Game keeps switching windowed (320x200) -> fullscreen (640x480) -> windowed (320x200) -> etc. GetClientRect starts to get stuck in some warped state, returning weird results like: (windowed) glDirectDraw7::SetCooperativeLevel: left set to 0...
by bclarte
January 21st, 2015, 8:13 pm
Forum: DXGL Development
Topic: War Gods - direct3d1
Replies: 4
Views: 49877

War Gods - direct3d1

Hi, This game from 1996-1997 Midway uses D3D1, which isn't correctly supported by dxgl yet. FindDevice needs to use these smaller structs: typedef struct _D3DDEVICEDESC1 { DWORD dwSize; DWORD dwFlags; D3DCOLORMODEL dcmColorModel; DWORD dwDevCaps; D3DTRANSFORMCAPS dtcTransformCaps; BOOL bClipping; D3...