mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Use M_PI from retro_math.h
This commit is contained in:
parent
b030f044f4
commit
ff96d914f4
@ -22,6 +22,7 @@
|
||||
#include <file/file_path.h>
|
||||
#include <streams/file_stream.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <retro_math.h>
|
||||
|
||||
#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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user