diff options
author | rbuj <[email protected]> | 2020-12-05 11:32:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-05 13:35:26 +0100 |
commit | ceffc9032e410be0a9957d68e7898fe92f979cfc (patch) | |
tree | 7c3c1d08a4cfab417612022c5ec7e444512ba50c /applets/fish/fish.c | |
parent | 78ea6fd61a3e6d0d4601b2595126eb9b0ed76a42 (diff) | |
download | mate-panel-ceffc9032e410be0a9957d68e7898fe92f979cfc.tar.bz2 mate-panel-ceffc9032e410be0a9957d68e7898fe92f979cfc.tar.xz |
fish: Do not to include the math.h library to get the PI value
Diffstat (limited to 'applets/fish/fish.c')
-rw-r--r-- | applets/fish/fish.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 <config.h> -#include <math.h> #include <string.h> #include <time.h> @@ -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, |