blob: d2a50ce9f5e24f1a72c8a1fec77fc9bf1df9af01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* See LICENSE file for copyright and license details. */
#define IN_LIBGAMMA_DUMMY
#include "common.h"
/**
* Restore the gamma ramps for a CRTC to the system settings for that CRTC
*
* @param this The CRTC state
* @return Zero on success, otherwise (negative) the value of an
* error identifier provided by this library
*/
int
libgamma_dummy_crtc_restore(libgamma_crtc_state_t *restrict this)
{
if (!libgamma_dummy_internal_configurations.capabilities.crtc_restore) {
errno = ENOTSUP;
return LIBGAMMA_ERRNO_SET;
}
return libgamma_dummy_internal_crtc_restore_forced(this->data);
}
|