Procházet zdrojové kódy

libobs: Fix type mismatch on obs_property_text_monospace

tytan652 před 3 roky
rodič
revize
30b8987bad
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      libobs/obs-properties.c
  2. 1 1
      libobs/obs-properties.h

+ 1 - 1
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;
 	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);
 	struct text_data *data = get_type_data(p, OBS_PROPERTY_TEXT);
 	return data ? data->monospace : false;
 	return data ? data->monospace : false;

+ 1 - 1
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 enum obs_number_type obs_property_float_type(obs_property_t *p);
 EXPORT const char *obs_property_float_suffix(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_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 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_filter(obs_property_t *p);
 EXPORT const char *obs_property_path_default_path(obs_property_t *p);
 EXPORT const char *obs_property_path_default_path(obs_property_t *p);