aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-03 07:38:05 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-03 07:38:05 +0200
commit8d2ddd2cd185b0749335967e635ec75cdc47a1f8 (patch)
tree50d9a0e5edeac151ec7a60a6381fcda542916b46 /src
parentm fixes + print all crtc info , except connector type and subpixel order, in the test (diff)
downloadlibgamma-8d2ddd2cd185b0749335967e635ec75cdc47a1f8.tar.gz
libgamma-8d2ddd2cd185b0749335967e635ec75cdc47a1f8.tar.bz2
libgamma-8d2ddd2cd185b0749335967e635ec75cdc47a1f8.tar.xz
fix gamma ramp size fetch for vidmode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/lib/gamma-x-vidmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/gamma-x-vidmode.c b/src/lib/gamma-x-vidmode.c
index 654995c..c0a68fc 100644
--- a/src/lib/gamma-x-vidmode.c
+++ b/src/lib/gamma-x-vidmode.c
@@ -230,7 +230,7 @@ int libgamma_x_vidmode_get_crtc_information(libgamma_crtc_information_t* restric
this->gamma_size_error = 0;
/* X VidMode does support gamma ramp size query. The gamma
ramps are identical but not fixed, and the query can fail. */
- if ((fields & LIBGAMMA_CRTC_INFO_GAMMA_SUPPORT))
+ if ((fields & LIBGAMMA_CRTC_INFO_GAMMA_SIZE))
{
Display* restrict connection = crtc->partition->site->data;
int stops = 0;