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;