void idSimpleWindow::SetupTransforms( float x, float y ) { static idMat3 trans; static idVec3 org; trans.Identity(); org.Set( origin.x + x, origin.y + y, 0 ); if( rotate ) { static idRotation rot; static idVec3 vec( 0, 0, 1 ); rot.Set( org, vec, rotate ); trans = rot.ToMat3(); } static idMat3 smat; smat.Identity(); if( shear.x() || shear.y() ) { smat[0][1] = shear.x(); smat[1][0] = shear.y(); trans *= smat; } if( !trans.IsIdentity() ) { dc->SetTransformInfo( org, trans ); } }