aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-24 02:35:56 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-24 02:35:56 +0200
commit21846e2396881c028613aec0ac4e75ae167d66d8 (patch)
tree196d51a7104ef8da9ccf1670696595d27f739428
parentm (diff)
downloadlibgamma-21846e2396881c028613aec0ac4e75ae167d66d8.tar.gz
libgamma-21846e2396881c028613aec0ac4e75ae167d66d8.tar.bz2
libgamma-21846e2396881c028613aec0ac4e75ae167d66d8.tar.xz
gamma-x-randr: crtc info: jump if the output information is not required
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/gamma-x-randr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gamma-x-randr.c b/src/gamma-x-randr.c
index c5f60dd..0d831c9 100644
--- a/src/gamma-x-randr.c
+++ b/src/gamma-x-randr.c
@@ -488,6 +488,10 @@ int libgamma_x_randr_get_crtc_information(libgamma_crtc_information_t* restrict
if ((fields & (CRTC_INFO_WIDTH_MM | CRTC_INFO_HEIGHT_MM | CRTC_INFO_SUBPIXEL_ORDER)))
fields |= CRTC_INFO_ACTIVE;
+ /* Jump if the output information is not required. */
+ if ((fields & (CRTC_INFO_ACTIVE | CRTC_INFO_CONNECTOR_NAME)) == 0)
+ goto cont;
+
/* FIXME output */
e |= this->connector_name_error = -1; /* FIXME */