Update.
[universe.git] / universe.cc
index 8dec7f5..6eca067 100644 (file)
@@ -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++)