From c2aaaefc079fb6f81fd6a273087b2fe8e2c578cb Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Tue, 3 Jan 2023 11:56:44 +0900 Subject: [PATCH] Move custom FPS property next to its FPS The two properties "Use custom frame rate" and "FPS" control the FPS so that these properties should be located next to each. The commit e65bc98 moved the other property "Control audio via OBS" in between the FPS properties. --- obs-browser-plugin.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/obs-browser-plugin.cpp b/obs-browser-plugin.cpp index e8f7e60f2..45d726b27 100644 --- a/obs-browser-plugin.cpp +++ b/obs-browser-plugin.cpp @@ -190,6 +190,9 @@ static obs_properties_t *browser_source_get_properties(void *data) obs_properties_add_int(props, "height", obs_module_text("Height"), 1, 4096, 1); + obs_properties_add_bool(props, "reroute_audio", + obs_module_text("RerouteAudio")); + obs_property_t *fps_set = obs_properties_add_bool( props, "fps_custom", obs_module_text("CustomFrameRate")); obs_property_set_modified_callback(fps_set, is_fps_custom); @@ -198,10 +201,8 @@ static obs_properties_t *browser_source_get_properties(void *data) obs_property_set_enabled(fps_set, false); #endif - obs_properties_add_bool(props, "reroute_audio", - obs_module_text("RerouteAudio")); - obs_properties_add_int(props, "fps", obs_module_text("FPS"), 1, 60, 1); + obs_property_t *p = obs_properties_add_text( props, "css", obs_module_text("CSS"), OBS_TEXT_MULTILINE); obs_property_text_set_monospace(p, true);