From 52a5a370fd394585d4bbf69d4a637bf92bd5878d Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Thu, 6 May 2010 23:56:52 +0200 Subject: 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. --- src/Makefile.am | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index f23ab0b..c46c9ba 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,11 +11,13 @@ bin_PROGRAMS = redshift redshift_SOURCES = \ redshift.c \ colorramp.c colorramp.h \ - solar.c solar.h + solar.c solar.h \ + systemtime.c systemtime.h EXTRA_redshift_SOURCES = \ randr.c randr.h \ - vidmode.c vidmode.h + vidmode.c vidmode.h \ + w32gdi.c w32gdi.h AM_CFLAGS = redshift_LDADD = @LIBINTL@ @@ -36,3 +38,8 @@ redshift_LDADD += \ $(X11_LIBS) $(X11_CFLAGS) \ $(XF86VM_LIBS) $(XF86VM_CFLAGS) endif + +if ENABLE_WINGDI +redshift_SOURCES += w32gdi.c w32gdi.h +redshift_LDADD += -lgdi32 +endif -- cgit v1.2.3-70-g09d2