mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Merge pull request #1167 from Palakis/multiview-font-fix
UI: fix Multiview labels readability
This commit is contained in:
@@ -109,12 +109,12 @@ static OBSSource CreateLabel(const char *name, size_t h)
|
||||
#else
|
||||
obs_data_set_string(font, "face", "Monospace");
|
||||
#endif
|
||||
obs_data_set_int(font, "flags", 0);
|
||||
obs_data_set_int(font, "flags", 1); // Bold text
|
||||
obs_data_set_int(font, "size", int(h / 9.81));
|
||||
|
||||
obs_data_set_obj(settings, "font", font);
|
||||
obs_data_set_string(settings, "text", text.c_str());
|
||||
obs_data_set_bool(settings, "outline", true);
|
||||
obs_data_set_bool(settings, "outline", false);
|
||||
|
||||
#ifdef _WIN32
|
||||
const char *text_source_id = "text_gdiplus";
|
||||
@@ -841,7 +841,7 @@ void OBSProjector::UpdateMultiview()
|
||||
name += " - ";
|
||||
name += obs_source_get_name(src);
|
||||
|
||||
multiviewLabels[curIdx + 2] = CreateLabel(name.c_str(), h / 4);
|
||||
multiviewLabels[curIdx + 2] = CreateLabel(name.c_str(), h / 3);
|
||||
|
||||
curIdx++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user