From ff96d914f40248ba34a3ef6be555dd20b4963ce1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 15 Feb 2020 01:54:44 +0100 Subject: [PATCH] Use M_PI from retro_math.h --- menu/widgets/menu_widgets.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/menu/widgets/menu_widgets.c b/menu/widgets/menu_widgets.c index 4fca9735c0..753a03a309 100644 --- a/menu/widgets/menu_widgets.c +++ b/menu/widgets/menu_widgets.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "menu_widgets.h" @@ -42,10 +43,6 @@ #include "../../gfx/font_driver.h" -#ifndef PI -#define PI 3.14159265359f -#endif - /* TODO: Fix context reset freezing everything in place (probably kills animations when it shouldn't anymore) */ static float msg_queue_background[16] = COLOR_HEX_TO_FLOAT(0x3A3A3A, 1.0f); @@ -865,7 +862,7 @@ static void menu_widgets_hourglass_tick(void *userdata) entry.easing_enum = EASING_OUT_QUAD; entry.tag = tag; entry.duration = HOURGLASS_DURATION; - entry.target_value = -(2 * PI); + entry.target_value = -(2 * M_PI); entry.subject = &msg->hourglass_rotation; entry.cb = menu_widgets_hourglass_end; entry.userdata = msg;