From 534bbff544e1d1da32c0f5bb5796d07ea73ee0dd Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 26 Nov 2021 22:06:55 +0100 Subject: [PATCH] Update. --- universe.cc | 2 ++ universe.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/universe.cc b/universe.cc index 8dec7f5..6eca067 100644 --- a/universe.cc +++ b/universe.cc @@ -149,6 +149,7 @@ void Universe::draw(SimpleWindow *window) { } #endif +#ifdef CAIRO_SUPPORT void Universe::draw(Canvas *canvas) { for(int n = 0; n < _nb_polygons; n++) { if(_polygons[n]) { @@ -162,6 +163,7 @@ void Universe::draw(Canvas *canvas) { } } } +#endif void Universe::apply_gravity(scalar_t dt, scalar_t fx, scalar_t fy) { for(int n = 0; n < _nb_polygons; n++) diff --git a/universe.h b/universe.h index 07cf7f0..de9f372 100644 --- a/universe.h +++ b/universe.h @@ -55,7 +55,7 @@ public: #ifdef CAIRO_SUPPORT void draw(Canvas *canvas); -}; #endif +}; #endif -- 2.39.5