aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/gamma-x-vidmode.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-01 05:38:58 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-01 05:38:58 +0200
commit9f8c3fb80740d91074b4b08a2cd4e6a729c17086 (patch)
treeb7eec53a1fe4280e922607cfca46f6287e0c55e2 /src/lib/gamma-x-vidmode.c
parentm + m fixes + doc (diff)
downloadlibgamma-9f8c3fb80740d91074b4b08a2cd4e6a729c17086.tar.gz
libgamma-9f8c3fb80740d91074b4b08a2cd4e6a729c17086.tar.bz2
libgamma-9f8c3fb80740d91074b4b08a2cd4e6a729c17086.tar.xz
m + m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/lib/gamma-x-vidmode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/gamma-x-vidmode.c b/src/lib/gamma-x-vidmode.c
index 170d3b4..654995c 100644
--- a/src/lib/gamma-x-vidmode.c
+++ b/src/lib/gamma-x-vidmode.c
@@ -38,11 +38,11 @@
void libgamma_x_vidmode_method_capabilities(libgamma_method_capabilities_t* restrict this)
{
char* restrict display = getenv("DISPLAY");
- /* Gamma ramps size anddepth can be queried. */
+ /* Gamma ramps size and depth can be queried. */
this->crtc_information = LIBGAMMA_CRTC_INFO_GAMMA_SIZE
| LIBGAMMA_CRTC_INFO_GAMMA_DEPTH;
- /* X VidMode supports multiple sits and partitions but not CRTC:s. */
- this->default_site_known = (display && *display);
+ /* X VidMode supports multiple sites and partitions but not CRTC:s. */
+ this->default_site_known = (display && *display) ? 1 : 0;
this->multiple_sites = 1;
this->multiple_partitions = 1;
this->multiple_crtcs = 0;