UI: Change multiview non-studio selection color

When not in studio mode the preview and program sources are the same
but the checks will be made against GetCurrentSceneSource which were
resulting in the multiview source highlight to give the previewColor
where in this case we want the programColor.
This commit is contained in:
Shaolin 2018-03-13 16:38:30 -03:00
parent 3d189484f9
commit 1b357d3b12

View File

@ -455,15 +455,17 @@ void OBSProjector::OBSRenderMultiview(void *data, uint32_t cx, uint32_t cy)
/* ----------- */
if (src == previewSrc || src == programSrc) {
uint32_t colorVal = src == programSrc ? programColor
: previewColor;
uint32_t colorVal = outerColor;
if (src == programSrc)
colorVal = programColor;
else if (src == previewSrc)
colorVal = studioMode ? previewColor : programColor;
gs_matrix_push();
gs_matrix_translate3f(sourceX, sourceY, 0.0f);
drawBox(quarterCX, quarterCY, colorVal);
gs_matrix_pop();
}
// Highlight preview/program sources with a proper color
gs_matrix_push();
gs_matrix_translate3f(sourceX, sourceY, 0.0f);
drawBox(quarterCX, quarterCY, colorVal);
gs_matrix_pop();
// Change the background back of the source region
gs_matrix_push();