Original Post
Anybody can tell me why the screen of my game became all weird when i set the viewport to (0,0,ScrHEIGHT,ScrHeight). i set it this way: void CTetrix3DXGameEngine::SetViewPortMatrix() { // This will hold the viewPort matrix. D3DVIEWPORT9 ViewPort; ViewPort.X = 0; ViewPort.Y = 0; ViewPort.Width = ScrHeight; ViewPort.Height = ScrHeight; ViewPort.MinZ = 0.0f; ViewPort.MaxZ = 1.0f; g_pd3dDevice->SetViewport(&ViewPort); } Why that does't work?