aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-dummy.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2014-12-27 20:35:00 -0500
committerJon Lund Steffensen <jonlst@gmail.com>2014-12-27 20:35:00 -0500
commit87cec6b3661d9367b1d59935a41d3eab2e32c5b3 (patch)
tree767475829fda9b9856532535e06dcb3ad02a5b32 /src/gamma-dummy.c
parentredshift: Use double for interpolation function (diff)
parentredshift: Simplify set_temperature by passing color_setting_t (diff)
downloadredshift-ng-87cec6b3661d9367b1d59935a41d3eab2e32c5b3.tar.gz
redshift-ng-87cec6b3661d9367b1d59935a41d3eab2e32c5b3.tar.bz2
redshift-ng-87cec6b3661d9367b1d59935a41d3eab2e32c5b3.tar.xz
Merge branch 'color-settings-struct'
Diffstat (limited to 'src/gamma-dummy.c')
-rw-r--r--src/gamma-dummy.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gamma-dummy.c b/src/gamma-dummy.c
index 0ebb12d..ba62d93 100644
--- a/src/gamma-dummy.c
+++ b/src/gamma-dummy.c
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with Redshift. If not, see <http://www.gnu.org/licenses/>.
- Copyright (c) 2013 Jon Lund Steffensen <jonlst@gmail.com>
+ Copyright (c) 2013-2014 Jon Lund Steffensen <jonlst@gmail.com>
*/
#include <stdio.h>
@@ -27,6 +27,8 @@
# define _(s) s
#endif
+#include "redshift.h"
+
int
gamma_dummy_init(void *state)
@@ -66,9 +68,8 @@ gamma_dummy_set_option(void *state, const char *key, const char *value)
}
int
-gamma_dummy_set_temperature(void *state, int temp, float brightness,
- const float gamma[3])
+gamma_dummy_set_temperature(void *state, const color_setting_t *setting)
{
- printf(_("Temperature: %i\n"), temp);
+ printf(_("Temperature: %i\n"), setting->temperature);
return 0;
}