From 1873d3a1d231656b87b71cb6ff86f830a0687370 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz <jakob@collabora.com> Date: Wed, 3 Apr 2019 17:24:06 +0100 Subject: [PATCH] comp: Tidy code --- src/xrt/compositor/common/comp_vk_swapchain.c | 6 ++++++ src/xrt/compositor/main/comp_settings.h | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/xrt/compositor/common/comp_vk_swapchain.c b/src/xrt/compositor/common/comp_vk_swapchain.c index 881445e05..742a4590f 100644 --- a/src/xrt/compositor/common/comp_vk_swapchain.c +++ b/src/xrt/compositor/common/comp_vk_swapchain.c @@ -19,6 +19,12 @@ #include "comp_vk_swapchain.h" +/* + * + * Types, defines and data. + * + */ + /*! * These formats will be 'preferred' - in future we may wish to give preference * to higher bit depths if they are available, but most display devices we are diff --git a/src/xrt/compositor/main/comp_settings.h b/src/xrt/compositor/main/comp_settings.h index 2acd81b2e..992df7ed6 100644 --- a/src/xrt/compositor/main/comp_settings.h +++ b/src/xrt/compositor/main/comp_settings.h @@ -18,12 +18,16 @@ extern "C" { #endif -// since NVidia direct mode lets us 'acquire' any display, we need to -// be careful about which displays we attempt to acquire. -// We may wish to allow user configuration to extend this list. -XRT_MAYBE_UNUSED static const char *NV_DIRECT_WHITELIST[] = { - "Sony SIE HMD *08", "HTC Corporation HTC-VIVE"}; +/*! + * Since NVidia direct mode lets us 'acquire' any display, we need to + * be careful about which displays we attempt to acquire. + * We may wish to allow user configuration to extend this list. + */ +XRT_MAYBE_UNUSED static const char *NV_DIRECT_WHITELIST[] = { + "Sony SIE HMD *08", + "HTC Corporation HTC-VIVE", +}; /*! * Window type to use. -- GitLab