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.
This commit is contained in:
Jon Lund Steffensen
2010-05-06 23:56:52 +02:00
parent fc47840a2c
commit 52a5a370fd
9 changed files with 402 additions and 52 deletions
+9 -2
View File
@@ -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