mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
oh: Fix type issues
This commit is contained in:
parent
afd20250ed
commit
d1ec5fa66a
|
@ -326,13 +326,15 @@ oh_device_create(ohmd_context *ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Which blend modes does the device support.
|
// Which blend modes does the device support.
|
||||||
ohd->base.blend_mode |= XRT_BLEND_MODE_OPAQUE;
|
ohd->base.blend_mode = XRT_BLEND_MODE_OPAQUE;
|
||||||
if (quirk_video_see_through) {
|
if (quirk_video_see_through) {
|
||||||
ohd->base.blend_mode |= XRT_BLEND_MODE_ALPHA_BLEND;
|
ohd->base.blend_mode = (enum xrt_blend_mode)(
|
||||||
|
ohd->base.blend_mode | XRT_BLEND_MODE_ALPHA_BLEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quirk_video_distortion_vive) {
|
if (quirk_video_distortion_vive) {
|
||||||
ohd->base.distortion.models |= XRT_DISTORTION_MODEL_VIVE;
|
ohd->base.distortion.models = (enum xrt_distortion_model)(
|
||||||
|
ohd->base.distortion.models | XRT_DISTORTION_MODEL_VIVE);
|
||||||
ohd->base.distortion.preferred = XRT_DISTORTION_MODEL_VIVE;
|
ohd->base.distortion.preferred = XRT_DISTORTION_MODEL_VIVE;
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|
|
@ -8,10 +8,14 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <xrt/xrt_device.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef struct ohmd_context ohmd_context;
|
||||||
|
typedef struct ohmd_device ohmd_device;
|
||||||
|
|
||||||
struct oh_device
|
struct oh_device
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue