Update miniwin/src/d3drm/d3drmviewport.cpp

This commit is contained in:
Anders Jenbo 2025-06-04 05:29:27 +02:00 committed by GitHub
parent 771801d826
commit ccd15acf22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -504,7 +504,7 @@ HRESULT Direct3DRMViewportImpl::Transform(D3DRMVECTOR4D* screen, D3DVECTOR* worl
screen->x = (ndcX * 0.5f + 0.5f) * m_width;
screen->y = (1.0f - (ndcY * 0.5f + 0.5f)) * m_height;
// Undo perspective divice
// Undo perspective divide
screen->x *= screen->z;
screen->y *= screen->w;