From 9fa20ec678c874ae6953be7745368fa1f96cde88 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:14:34 +0300 Subject: [PATCH] Replace use of std::numbers::pi with M_PI. --- UnleashedRecomp/stdafx.h | 1 - UnleashedRecomp/ui/options_menu.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/UnleashedRecomp/stdafx.h b/UnleashedRecomp/stdafx.h index 58644d49..4c553910 100644 --- a/UnleashedRecomp/stdafx.h +++ b/UnleashedRecomp/stdafx.h @@ -49,7 +49,6 @@ using Microsoft::WRL::ComPtr; #include #include #include -#include #include #include "framework.h" diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 6266ca01..7520554c 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -157,7 +157,7 @@ static void DrawTitle() auto rectMoveMotion = ComputeMotion(g_appearTime, rectMoveMotionOffset, squareMoveDuration); auto rectEndMotion = ComputeMotion(g_appearTime, 0.0, squareMoveEndDuration); - auto rectBlinkMotion = sin(ComputeMotion(g_appearTime, squareMoveEndDuration + rectBlinkMotionOffset, squareBlinkDuration) * std::numbers::pi); + auto rectBlinkMotion = sin(ComputeMotion(g_appearTime, squareMoveEndDuration + rectBlinkMotionOffset, squareBlinkDuration) * M_PI); auto rectAlphaMotion = 1.0f; auto rectY = Scale(10); auto rectSize = Scale(32);