diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-23 18:54:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-23 18:54:35 +0200 |
commit | 972c31a4d7a7786af5f1e3302c7c3035ec911cb2 (patch) | |
tree | 0357566c7adc26a7fe4885c2962bbc0828ec36e9 /src/gamma-x-randr.c | |
parent | m (diff) | |
download | libgamma-972c31a4d7a7786af5f1e3302c7c3035ec911cb2.tar.gz libgamma-972c31a4d7a7786af5f1e3302c7c3035ec911cb2.tar.bz2 libgamma-972c31a4d7a7786af5f1e3302c7c3035ec911cb2.tar.xz |
gamma-x-randr: crtc init
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/gamma-x-randr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gamma-x-randr.c b/src/gamma-x-randr.c index 95e8fdc..36be77a 100644 --- a/src/gamma-x-randr.c +++ b/src/gamma-x-randr.c @@ -297,7 +297,11 @@ int libgamma_x_randr_partition_restore(libgamma_partition_state_t* restrict this int libgamma_x_randr_crtc_initialise(libgamma_crtc_state_t* restrict this, libgamma_partition_state_t* restrict partition, size_t crtc) { - /* TODO */ + xcb_randr_crtc_t* crtc_ids = partition->data; + if (crtc >= partition->crtcs_available) + return LIBGAMMA_NO_SUCH_CRTC; + this->data = crtc_ids + crtc; + return 0; } |