aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-vidmode.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2017-10-11 20:57:29 -0700
committerJon Lund Steffensen <jonlst@gmail.com>2017-10-13 18:12:43 -0700
commit1d29f92349843851d26cc453598cbe3a3f4fd5f1 (patch)
tree4bc99decf721bdee01045744024fad38f49d09b3 /src/gamma-vidmode.c
parentAllocate module data in init functions (diff)
downloadredshift-ng-1d29f92349843851d26cc453598cbe3a3f4fd5f1.tar.gz
redshift-ng-1d29f92349843851d26cc453598cbe3a3f4fd5f1.tar.bz2
redshift-ng-1d29f92349843851d26cc453598cbe3a3f4fd5f1.tar.xz
Move module structures out of headers
Diffstat (limited to 'src/gamma-vidmode.c')
-rw-r--r--src/gamma-vidmode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c
index 8d1791a..76950c8 100644
--- a/src/gamma-vidmode.c
+++ b/src/gamma-vidmode.c
@@ -37,6 +37,15 @@
#include "colorramp.h"
+typedef struct {
+ Display *display;
+ int preserve;
+ int screen_num;
+ int ramp_size;
+ uint16_t *saved_ramps;
+} vidmode_state_t;
+
+
static int
vidmode_init(vidmode_state_t **state)
{