renamed SDL PI constants to SDL_PI_D and SDL_PI_F.

This commit is contained in:
Ozkan Sezer 2022-11-25 22:35:24 +03:00
parent 199423612c
commit 0b8309da0c
19 changed files with 150 additions and 150 deletions

View file

@ -1821,13 +1821,13 @@ D3D11_UpdateViewport(SDL_Renderer * renderer)
projection = MatrixIdentity();
break;
case DXGI_MODE_ROTATION_ROTATE270:
projection = MatrixRotationZ(SDL_M_PIf * 0.5f);
projection = MatrixRotationZ(SDL_PI_F * 0.5f);
break;
case DXGI_MODE_ROTATION_ROTATE180:
projection = MatrixRotationZ(SDL_M_PIf);
projection = MatrixRotationZ(SDL_PI_F);
break;
case DXGI_MODE_ROTATION_ROTATE90:
projection = MatrixRotationZ(-SDL_M_PIf * 0.5f);
projection = MatrixRotationZ(-SDL_PI_F * 0.5f);
break;
default:
return SDL_SetError("An unknown DisplayOrientation is being used");