aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtime.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-16Major refactoring and some fixesMattias Andrée1-61/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08Misc improvementsMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-07Misc improvementsMattias Andrée1-37/+31
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-06Update redshift to redshift-ngMattias Andrée1-4/+4
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-06StyleMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05cleanup + cast + use pipe2 on linuxMattias Andrée1-13/+10
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Cleanup and style update (avoid typedef)Mattias Andrée1-16/+1
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Unify header files (so far most)Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <m@maandree.se>
2015-02-22Fix #174: Use nanosleep() instead of usleep()Jon Lund Steffensen1-1/+5
usleep() cannot sleep for more than 1000000 microseconds on certain platforms. nanosleep() does not have this limitation.
2014-12-28systemtime: Add function wrapping platform sleep functionJon Lund Steffensen1-0/+11
Adds systemtime_msleep() which sleeps for a number of milliseconds. This wraps Sleep() on windows and usleep() on other platforms.
2014-12-28systemtime: Fix includes and check for _POSIX_TIMERSJon Lund Steffensen1-2/+7
Fix missing include of windows.h on windows platform. Change check for _POSIX_TIMERS to check that it is greater than 0. On OS X, the POSIX timers are not available and _POSIX_TIMERS is -1.
2014-12-15systemtime: Use gettimeofday if POSIX timers not availableJon Lund Steffensen1-12/+25
2010-05-06systemtime.c: Portably read current time on posix and windows.Jon Lund Steffensen1-16/+29
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-02-02Add gettext support in redshift.Jon Lund Steffensen1-1/+1
2010-01-07Add include of stdint.h in header files.Jon Lund Steffensen1-0/+2
2010-01-01Save and restore ramps with VidMode.Jon Lund Steffensen1-0/+2
2010-01-01Reuse X connection when adjusting gamma ramps.Jon Lund Steffensen1-2/+11
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.
2009-12-25Allow selection of X screen to apply adjustments to.Jon Lund Steffensen1-1/+1
2009-12-23Add setting gamma ramps with the VidMode extension.Jon Lund Steffensen1-6/+6
Allow selection of gamma setting method with program parameter (-m). Fallback to VidMode if RANDR doesn't work.
2009-12-23Move source and headers to src dir.Jon Lund Steffensen1-0/+0
2009-12-23Move RandR code to separate file.Jon Lund Steffensen1-6/+6
2009-11-04Add COPYING file (GPLv3).Jon Lund Steffensen1-1/+18
Add copyright and license in file headers.
2009-11-04Allow individual adjustment of each gamma channel.Jon Lund Steffensen1-1/+1