diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-28 23:41:24 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-28 23:41:24 +0100 |
commit | 02e793e5db3ea240432d43c3f9ab098516df1173 (patch) | |
tree | 1fc2f98790ba5b7cf70c75b4dd2c062e31d42f6f /demos/modules/gwin/graph/main.c | |
parent | 5a99092b794373966e444296c57991631e712c70 (diff) | |
download | uGFX-02e793e5db3ea240432d43c3f9ab098516df1173.tar.gz uGFX-02e793e5db3ea240432d43c3f9ab098516df1173.tar.bz2 uGFX-02e793e5db3ea240432d43c3f9ab098516df1173.zip |
using GFX_PI internally to avoid issues with M_PI
Diffstat (limited to 'demos/modules/gwin/graph/main.c')
-rw-r--r-- | demos/modules/gwin/graph/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/modules/gwin/graph/main.c b/demos/modules/gwin/graph/main.c index 7a496fae..4273b750 100644 --- a/demos/modules/gwin/graph/main.c +++ b/demos/modules/gwin/graph/main.c @@ -82,14 +82,14 @@ int main(void) { gwinGraphDrawAxis(gh); for(i = 0; i < gwinGetWidth(gh); i++) - gwinGraphDrawPoint(gh, i-gwinGetWidth(gh)/2, 80*fsin(2*i/5)); //sin(2*0.2*M_PI*i/180)); + gwinGraphDrawPoint(gh, i-gwinGetWidth(gh)/2, 80*fsin(2*i/5)); //sin(2*0.2*GFX_PI*i/180)); gwinGraphStartSet(gh); GraphStyle1.point.color = Green; gwinGraphSetStyle(gh, &GraphStyle1); for(i = 0; i < gwinGetWidth(gh)*5; i++) - gwinGraphDrawPoint(gh, i/5-gwinGetWidth(gh)/2, 95*fsin(2*i/5)); //sin(2*0.2*M_PI*i/180)); + gwinGraphDrawPoint(gh, i/5-gwinGetWidth(gh)/2, 95*fsin(2*i/5)); //sin(2*0.2*GFX_PI*i/180)); gwinGraphStartSet(gh); gwinGraphSetStyle(gh, &GraphStyle2); |