Merge pull request #1167 from Palakis/multiview-font-fix

UI: fix Multiview labels readability
This commit is contained in:
Jim
2018-01-22 05:46:15 -08:00
committed by GitHub
+3 -3
View File
@@ -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++;
}