mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/drm: reset gamma table on VT switch
This commit is contained in:
parent
2beb68007e
commit
e88db9a3fb
3 changed files with 26 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue