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:
+9
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user