From 8d2ddd2cd185b0749335967e635ec75cdc47a1f8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 07:38:05 +0200 Subject: fix gamma ramp size fetch for vidmode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/gamma-x-vidmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2