aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-04 20:54:03 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-04 20:54:03 +0100
commit575a3003dc87bbc3c5c23f45289dccfad1301a7c (patch)
treec6416dd1e16e4f37e45aaba610d2e22709ae7408 /src/state.c
parentsplit out libhaiku from radharc (diff)
downloadradharc-575a3003dc87bbc3c5c23f45289dccfad1301a7c.tar.gz
radharc-575a3003dc87bbc3c5c23f45289dccfad1301a7c.tar.bz2
radharc-575a3003dc87bbc3c5c23f45289dccfad1301a7c.tar.xz
m + split out libred
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/state.c b/src/state.c
index 7e7509f..e5c2a42 100644
--- a/src/state.c
+++ b/src/state.c
@@ -15,12 +15,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "state.h"
-#include "solar.h"
#include "macros.h"
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
+#include <libred.h>
#include <libgamma.h>
@@ -63,10 +63,10 @@ static size_t parts_n = 0;
enum darkness
get_darkness(double elevation)
{
- if (elevation > SOLAR_ELEVATION_SUNSET_SUNRISE) return DAYTIME;
- if (elevation > SOLAR_ELEVATION_CIVIL_DUSK_DAWN) return CIVIL_TWILIGHT;
- if (elevation > SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN) return NAUTICAL_TWILIGHT;
- if (elevation > SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN) return ASTRONOMICAL_TWILIGHT;
+ if (elevation > LIBRED_SOLAR_ELEVATION_SUNSET_SUNRISE) return DAYTIME;
+ if (elevation > LIBRED_SOLAR_ELEVATION_CIVIL_DUSK_DAWN) return CIVIL_TWILIGHT;
+ if (elevation > LIBRED_SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN) return NAUTICAL_TWILIGHT;
+ if (elevation > LIBRED_SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN) return ASTRONOMICAL_TWILIGHT;
return NIGHT;
}