From 22ce25c396a87d0b2ff3ba3c9c97041afa1933fa Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 11 May 2019 15:22:00 +0200 Subject: [PATCH] export ptick --- graph.cpp | 2 +- hyper.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 0f9bf0e7..1138c0f2 100644 --- a/graph.cpp +++ b/graph.cpp @@ -29,7 +29,7 @@ purehookset hooks_frame, hooks_markers; ld animation_factor = 1; int animation_lcm = 0; -ld ptick(int period, ld phase = 0) { +ld ptick(int period, ld phase) { if(animation_lcm) animation_lcm = animation_lcm * (period / gcd(animation_lcm, period)); return (ticks * animation_factor) / period + phase * 2 * M_PI; } diff --git a/hyper.h b/hyper.h index fb5de9d3..a73b535f 100644 --- a/hyper.h +++ b/hyper.h @@ -5079,5 +5079,6 @@ extern bool first_cell_to_draw; extern int current_rbuffer; extern bool new_projection_needed; inline void reset_projection() { new_projection_needed = true; } +extern ld ptick(int period, ld phase = 0); }