diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-06 23:56:52 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-06 23:56:52 +0200 |
commit | 52a5a370fd394585d4bbf69d4a637bf92bd5878d (patch) | |
tree | a653ca89b5a2acfd094533704ba224b802b880b5 /src/solar.h | |
parent | Don't call setlocale if NLS was disabled. (diff) | |
download | redshift-ng-52a5a370fd394585d4bbf69d4a637bf92bd5878d.tar.gz redshift-ng-52a5a370fd394585d4bbf69d4a637bf92bd5878d.tar.bz2 redshift-ng-52a5a370fd394585d4bbf69d4a637bf92bd5878d.tar.xz |
systemtime.c: Portably read current time on posix and windows.
w32gdi.c: Implements gamma ramp method for Windows GDI API.
Use double as a cross platform time representation.
Add WinGDI as a selectable method (currently limitied to minimum 4500K).
Fix a bug where redshift would crash if RANDR failed and VidMode wasn't
compiled in.
Diffstat (limited to 'src/solar.h')
-rw-r--r-- | src/solar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/solar.h b/src/solar.h index a55c83a..b5554ef 100644 --- a/src/solar.h +++ b/src/solar.h @@ -20,7 +20,7 @@ #ifndef _SOLAR_H #define _SOLAR_H -#include <time.h> +#include "time.h" /* Model of atmospheric refraction near horizon (in degrees). */ #define SOLAR_ATM_REFRAC 0.833 @@ -44,8 +44,8 @@ typedef enum { SOLAR_TIME_MAX } solar_time_t; -double solar_elevation(struct timespec date, double lat, double lon); -void solar_table_fill(struct timespec date, double lat, double lon, - time_t *table); + +double solar_elevation(double date, double lat, double lon); +void solar_table_fill(double date, double lat, double lon, double *table); #endif /* ! _SOLAR_H */ |