Original Post
I have problem when I try to resize the window, the aspect ratio of the drawn content i wrong, it is streched. I do use a sprite (LPD3DXSPRITE) for the content, and some text (LPD3DXFONT), all in the window get's wrong aspect ratio. Here is the resize fuction: void ResizeScene(int width, int height) { D3DXMATRIXA16 matProjection; D3DXMatrixPerspectiveFovLH( &matProjection, 45.0f, (float)width/(float)height, 0.1f, 100.0f ); gpDevice->SetTransform( D3DTS_PROJECTION, &matProjection ); } I have used it from both WM_SIZE and WM_SIZING without positive result, nothing happends... The setup is DirectX 9.0c, and SDK from summer 2003.