From ceffc9032e410be0a9957d68e7898fe92f979cfc Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 5 Dec 2020 11:32:26 +0100 Subject: fish: Do not to include the math.h library to get the PI value --- applets/fish/fish.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'applets') diff --git a/applets/fish/fish.c b/applets/fish/fish.c index d77db1d9..4543eaa9 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -27,7 +27,6 @@ #include -#include #include #include @@ -1435,16 +1434,16 @@ static void update_pixmap(FishApplet* fish) if (fish->april_fools) { cairo_matrix_translate (&matrix, pixbuf_width - 1, pixbuf_height - 1); - cairo_matrix_rotate (&matrix, M_PI); + cairo_matrix_rotate (&matrix, G_PI); } if (rotate) { if (fish->orientation == MATE_PANEL_APPLET_ORIENT_RIGHT) { cairo_matrix_translate (&matrix, pixbuf_width - 1, 0); - cairo_matrix_rotate (&matrix, M_PI * 0.5); + cairo_matrix_rotate (&matrix, G_PI_2); } else { cairo_matrix_translate (&matrix, 0, pixbuf_height - 1); - cairo_matrix_rotate (&matrix, M_PI * 1.5); + cairo_matrix_rotate (&matrix, G_PI * 1.5); } cairo_matrix_scale (&matrix, (double) (pixbuf_height - 1) / width, -- cgit v1.2.1