Commit Graph
25 Commits
Author SHA1 Message Date
Jon Lund Steffensen 52a5a370fd 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.
2010-05-06 23:56:52 +02:00
Jon Lund Steffensen fc47840a2c Don't call setlocale if NLS was disabled. 2010-05-06 23:51:31 +02:00
Jon Lund Steffensen 9c2012b85e Disable signal support if sys/signal.h was not found. 2010-05-06 23:50:23 +02:00
Jon Lund Steffensen 8583f11f21 Restructure help text and add comments for easier translation. 2010-05-05 22:37:41 +02:00
Jon Lund Steffensen 8c266ebb7a Show default temperature values in help output. 2010-05-05 22:26:13 +02:00
Jon Lund Steffensen ebd6c7b80a Merge slightly altered patch from Alexandros Frantzis that allows adjusting individual CRTCs. 2010-05-04 23:42:10 +02:00
Alexandros Frantzis 9f6901aed3 Add support for changing the temperature of a specific CRTC (randr only). 2010-04-24 11:48:46 +03:00
Jon Lund Steffensen da622908b0 redshift.c: Handle -? parameter. This is also used when a parameter is
not recognized.
Update translations.
2010-02-10 22:52:11 +01:00
Jon Lund Steffensen e1f84c5c8d Update help strings: --help does not actually work, change to -h.
Update po files.
2010-02-10 22:05:04 +01:00
Jon Lund Steffensen a3f67071c1 redshift.c: Use LOCALEDIR define. 2010-02-10 21:58:06 +01:00
Jon Lund Steffensen 59db9546e5 Add gettext support in redshift. 2010-02-02 00:51:50 +01:00
Jon Lund Steffensen 8918855fee Add some comments in the redshift.c. 2010-01-09 16:09:16 +01:00
Jon Lund Steffensen 1bb58377aa Fix formating of help message. 2010-01-09 16:02:45 +01:00
Jon Lund Steffensen 32e61ecff6 Switch between enabled and disabled on USR1 signal.
Transition between the two states.
2010-01-09 15:52:51 +01:00
Jon Lund Steffensen 9c3d89dc52 Fix: Terminate loop immediately on second exit signal. 2010-01-07 20:15:46 +01:00
Jon Lund Steffensen a29a578b32 Handle both INT and TERM signals as exit signals. 2010-01-07 20:12:38 +01:00
Jon Lund Steffensen 0c8cb0e28c Make a short transition back to 6500K on program exit. 2010-01-01 21:00:08 +01:00
Jon Lund Steffensen b61c9d59d7 Reuse X connection when adjusting gamma ramps.
Save gamma ramps when program starts and restore them on exit (only RANDR).
Try both RANDR and VidMode if nothing was specified, otherwise try only the
 specified method.
2010-01-01 19:24:01 +01:00
Jon Lund Steffensen b3cbfa061d Use clock_gettime() to read current time. 2009-12-28 15:00:47 +01:00
Jon Lund Steffensen 1846f040ea Continously change color temperature (Add -o for one shot mode).
In continous mode, make a short transition from 6500K to the target
 temperature when the program starts.
2009-12-26 00:07:01 +01:00
Jon Lund Steffensen bb5a75db6d Allow compile time selection of which method to compile in. 2009-12-25 19:43:24 +01:00
Jon Lund Steffensen af292839cf Accept method names with different case. 2009-12-25 17:09:08 +01:00
Jon Lund Steffensen f7548343c8 Allow selection of X screen to apply adjustments to. 2009-12-25 16:30:56 +01:00
Jon Lund Steffensen cfeb79731a Add setting gamma ramps with the VidMode extension.
Allow selection of gamma setting method with program parameter (-m).
Fallback to VidMode if RANDR doesn't work.
2009-12-23 18:25:56 +01:00
Jon Lund Steffensen 03dcd5d78a Move source and headers to src dir. 2009-12-23 17:33:17 +01:00