diff --git a/ss/SSMain.cc b/ss/SSMain.cc index bfd4d37..9411fbe 100644 --- a/ss/SSMain.cc +++ b/ss/SSMain.cc @@ -14,8 +14,10 @@ #include #include "SSMain.h" #include "PlainSpin.h" +#ifndef WITHOUT_ODE #include "TumblingLogos.h" #include "Towers.h" +#endif /* switch to the next screensaver mode after this many milliseconds */ #define SSMODE_TIMEOUT_MSEC (1000*45) @@ -121,7 +123,11 @@ RET: SSMode * SSMain::startMode() { static int mode = 0; +#ifndef WITHOUT_ODE const int numModes = 3; +#else + const int numModes = 1; +#endif mode++; if (mode >= numModes) @@ -131,10 +137,12 @@ SSMode * SSMain::startMode() { case 0: return new PlainSpin(this); +#ifndef WITHOUT_ODE case 1: return new Towers(this); default: return new TumblingLogos(this); +#endif } }