aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-03 10:53:35 +0200
committeremersion <contact@emersion.fr>2018-10-03 10:53:35 +0200
commite88db9a3fb4208776b2a3ef35fdbd5fa344c0905 (patch)
tree35cf165496282f39060f549115863cae8272d9c2 /include
parent2beb68007e707e52711200d9607f7d392bec21cd (diff)
backend/drm: reset gamma table on VT switch
Diffstat (limited to 'include')
-rw-r--r--include/backend/drm/drm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 3b01b64f..3c728808 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -57,6 +57,9 @@ struct wlr_drm_crtc {
union wlr_drm_crtc_props props;
struct wl_list connectors;
+
+ uint16_t *gamma_table;
+ size_t gamma_table_size;
};
struct wlr_drm_backend {
@@ -151,5 +154,7 @@ void restore_drm_outputs(struct wlr_drm_backend *drm);
void scan_drm_connectors(struct wlr_drm_backend *state);
int handle_drm_event(int fd, uint32_t mask, void *data);
bool enable_drm_connector(struct wlr_output *output, bool enable);
+bool set_drm_connector_gamma(struct wlr_output *output, size_t size,
+ const uint16_t *r, const uint16_t *g, const uint16_t *b);
#endif