using GFX_PI instead of M_PI in graph demo

release/v2.9
Joel Bodenmann 2017-09-26 14:47:36 +02:00
parent 2513b54e71
commit 8219311877
1 changed files with 7 additions and 7 deletions

View File

@ -85,7 +85,7 @@ int main(void) {
// Draw a sine wave
for(i = 0; i < gwinGetWidth(gh); i++) {
gwinGraphDrawPoint(gh, i-gwinGetWidth(gh)/2, 80*sin(2*0.2*M_PI*i/180));
gwinGraphDrawPoint(gh, i-gwinGetWidth(gh)/2, 80*sin(2*0.2*GFX_PI*i/180));
}
// Modify the style
@ -95,7 +95,7 @@ int main(void) {
// Draw a different sine wave
for(i = 0; i < gwinGetWidth(gh)*5; i++) {
gwinGraphDrawPoint(gh, i/5-gwinGetWidth(gh)/2, 95*sin(2*0.2*M_PI*i/180));
gwinGraphDrawPoint(gh, i/5-gwinGetWidth(gh)/2, 95*sin(2*0.2*GFX_PI*i/180));
}
// Change to a completely different style