summaryrefslogtreecommitdiffstatsci
path: root/gunit_tests/save_restore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gunit_tests/save_restore.cpp')
-rw-r--r--gunit_tests/save_restore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gunit_tests/save_restore.cpp b/gunit_tests/save_restore.cpp
index fb0f18d..f82a208 100644
--- a/gunit_tests/save_restore.cpp
+++ b/gunit_tests/save_restore.cpp
@@ -1,5 +1,5 @@
#include "drawTestBase.h"
-#include <math.h>
+#include <cmath>
class SaveRestoreTest : public DrawTestBase {
@@ -24,7 +24,7 @@ class SaveRestoreTest : public DrawTestBase {
vkvg_clip(ctx);
vkvg_set_source_rgb(ctx, depthRatio, depthRatio, 1.f);
vkvg_paint(ctx);
- vkvg_arc(ctx, 256, 256, 256.f - gap * depth, 0, 2.f*M_PI);
+ vkvg_arc(ctx, 256, 256, 256.f - gap * depth, 0, 2.f * M_PI);
vkvg_clip(ctx);
vkvg_set_source_surface(ctx, imgSurf, 0, 0);
vkvg_paint(ctx);
@@ -52,7 +52,7 @@ class SaveRestoreTest : public DrawTestBase {
TEST_F(SaveRestoreTest, RestoreClip1) {
VkvgContext ctx = vkvg_create(surf);
- vkvg_arc(ctx, 140, 140, 100, 0, 2.f*M_PI);
+ vkvg_arc(ctx, 140, 140, 100, 0, 2.f * M_PI);
vkvg_clip(ctx);
vkvg_save(ctx);
vkvg_reset_clip(ctx);