From 30b8987badbb33818bf39dc6ec0e63ff50ff74ac Mon Sep 17 00:00:00 2001 From: tytan652 Date: Thu, 13 Jan 2022 11:59:58 +0100 Subject: [PATCH] libobs: Fix type mismatch on obs_property_text_monospace --- libobs/obs-properties.c | 2 +- libobs/obs-properties.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-properties.c b/libobs/obs-properties.c index 3aef87e10..2b4c0a046 100644 --- a/libobs/obs-properties.c +++ b/libobs/obs-properties.c @@ -1016,7 +1016,7 @@ enum obs_text_type obs_property_text_type(obs_property_t *p) return data ? data->type : OBS_TEXT_DEFAULT; } -enum obs_text_type obs_property_text_monospace(obs_property_t *p) +bool obs_property_text_monospace(obs_property_t *p) { struct text_data *data = get_type_data(p, OBS_PROPERTY_TEXT); return data ? data->monospace : false; diff --git a/libobs/obs-properties.h b/libobs/obs-properties.h index 36197313a..dcda3ab46 100644 --- a/libobs/obs-properties.h +++ b/libobs/obs-properties.h @@ -323,7 +323,7 @@ EXPORT double obs_property_float_step(obs_property_t *p); EXPORT enum obs_number_type obs_property_float_type(obs_property_t *p); EXPORT const char *obs_property_float_suffix(obs_property_t *p); EXPORT enum obs_text_type obs_property_text_type(obs_property_t *p); -EXPORT enum obs_text_type obs_property_text_monospace(obs_property_t *p); +EXPORT bool obs_property_text_monospace(obs_property_t *p); EXPORT enum obs_path_type obs_property_path_type(obs_property_t *p); EXPORT const char *obs_property_path_filter(obs_property_t *p); EXPORT const char *obs_property_path_default_path(obs_property_t *p);