mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-28 14:08:28 +00:00
renamed SDL PI constants to SDL_PI_D and SDL_PI_F.
This commit is contained in:
@@ -2366,13 +2366,13 @@ D3D12_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");
|
||||
|
Reference in New Issue
Block a user