mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 13:43:32 +00:00
Add separate PI macro
This commit is contained in:
parent
365c7f9c8b
commit
e411e7c284
@ -41,6 +41,8 @@
|
||||
|
||||
#define cg_d3d9_set_param_1f(param, x) if (param) cgD3D9SetUniform(param, x)
|
||||
|
||||
#define D3D_PI 3.14159265358979323846264338327
|
||||
|
||||
namespace
|
||||
{
|
||||
struct lut_info
|
||||
@ -1152,7 +1154,7 @@ static void renderchain_set_mvp(
|
||||
|
||||
D3DXMatrixOrthoOffCenterLH(&ortho, 0, vp_width, 0, vp_height, 0, 1);
|
||||
D3DXMatrixIdentity(&rot);
|
||||
D3DXMatrixRotationZ(&rot, rotation * (M_PI / 2.0));
|
||||
D3DXMatrixRotationZ(&rot, rotation * (D3D_PI / 2.0));
|
||||
|
||||
D3DXMatrixMultiply(&proj, &ortho, &rot);
|
||||
D3DXMatrixTranspose(&tmp, &proj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user