From: Francois Fleuret Date: Fri, 26 Nov 2021 21:06:55 +0000 (+0100) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=534bbff544e1d1da32c0f5bb5796d07ea73ee0dd;p=universe.git Update. --- 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