From d9d367fe044d32789b75b7876e97510874058f4a Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 3 Mar 2008 23:01:52 +0000 Subject: [PATCH] consolidate PI into M_PI --- plugin/core/gvrender_core_hpgl.c | 2 +- plugin/core/gvrender_core_mp.c | 2 +- plugin/core/gvrender_core_pic.c | 2 +- plugin/core/gvrender_core_vtx.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/core/gvrender_core_hpgl.c b/plugin/core/gvrender_core_hpgl.c index e0edfd9c5..93560cdb5 100644 --- a/plugin/core/gvrender_core_hpgl.c +++ b/plugin/core/gvrender_core_hpgl.c @@ -258,7 +258,7 @@ static void hpgl_textpara(GVJ_t * job, pointf p, textpara_t * para) int pen_style = 0; /* not used */ int font = -1; /* init to xfig's default font */ double font_size = para->fontsize * job->zoom; - double angle = job->rotation ? (PI / 2.0) : 0.0; + double angle = job->rotation ? (M_PI / 2.0) : 0.0; int font_flags = 4; /* PostScript font */ double height = 0.0; double length = 0.0; diff --git a/plugin/core/gvrender_core_mp.c b/plugin/core/gvrender_core_mp.c index 2b46c1fd2..c388e0bb4 100644 --- a/plugin/core/gvrender_core_mp.c +++ b/plugin/core/gvrender_core_mp.c @@ -258,7 +258,7 @@ static void mp_textpara(GVJ_t * job, pointf p, textpara_t * para) int pen_style = 0; /* not used */ int font = -1; /* init to xfig's default font */ double font_size = para->fontsize * job->zoom; - double angle = job->rotation ? (PI / 2.0) : 0.0; + double angle = job->rotation ? (M_PI / 2.0) : 0.0; int font_flags = 4; /* PostScript font */ double height = 0.0; double length = 0.0; diff --git a/plugin/core/gvrender_core_pic.c b/plugin/core/gvrender_core_pic.c index 061af3feb..edd8abf01 100644 --- a/plugin/core/gvrender_core_pic.c +++ b/plugin/core/gvrender_core_pic.c @@ -258,7 +258,7 @@ static void pic_textpara(GVJ_t * job, pointf p, textpara_t * para) int pen_style = 0; /* not used */ int font = -1; /* init to xfig's default font */ double font_size = para->fontsize * job->zoom; - double angle = job->rotation ? (PI / 2.0) : 0.0; + double angle = job->rotation ? (M_PI / 2.0) : 0.0; int font_flags = 4; /* PostScript font */ double height = 0.0; double length = 0.0; diff --git a/plugin/core/gvrender_core_vtx.c b/plugin/core/gvrender_core_vtx.c index 04228067b..4ba72cae0 100644 --- a/plugin/core/gvrender_core_vtx.c +++ b/plugin/core/gvrender_core_vtx.c @@ -258,7 +258,7 @@ static void vtx_textpara(GVJ_t * job, pointf p, textpara_t * para) int pen_style = 0; /* not used */ int font = -1; /* init to xfig's default font */ double font_size = para->fontsize * job->zoom; - double angle = job->rotation ? (PI / 2.0) : 0.0; + double angle = job->rotation ? (M_PI / 2.0) : 0.0; int font_flags = 4; /* PostScript font */ double height = 0.0; double length = 0.0; -- 2.40.0