From 6b8e14f8b89c0c8e2690afe0ddb5fc65849179d6 Mon Sep 17 00:00:00 2001 From: josh Date: Mon, 22 Sep 2008 17:50:01 +0000 Subject: [PATCH] added WITHOUT_ODE logic to ss/SSMain.cc git-svn-id: svn://anubis/dwscr/trunk@88 5bef9df8-b654-44bb-925b-0ff18baa8f8c --- ss/SSMain.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } }