UI: Simplify multiview draw code

master
Shaolin 2018-03-13 18:46:18 -03:00
parent 1b357d3b12
commit 98839524f7
1 changed files with 0 additions and 21 deletions

View File

@ -523,14 +523,6 @@ void OBSProjector::OBSRenderMultiview(void *data, uint32_t cx, uint32_t cy)
}
endRegion();
gs_matrix_pop();
/* ----------- */
gs_matrix_push();
gs_matrix_translate3f(sourceX, sourceY, 0.0f);
gs_matrix_scale3f(hiScaleX, hiScaleY, 1.0f);
renderVB(window->innerBox, targetCX, targetCY, outerColor);
renderVB(window->leftVLine, targetCX, targetCY, outerColor);
renderVB(window->rightVLine, targetCX, targetCY, outerColor);
@ -572,27 +564,14 @@ void OBSProjector::OBSRenderMultiview(void *data, uint32_t cx, uint32_t cy)
/* ----------- */
gs_matrix_push();
gs_matrix_translate3f(sourceX, sourceY, 0.0f);
gs_matrix_scale3f(hiScaleX, hiScaleY, 1.0f);
gs_matrix_pop();
/* ----------- */
cx = obs_source_get_width(programLabel);
cy = obs_source_get_height(programLabel);
gs_matrix_push();
gs_matrix_translate3f(labelX, labelY, 0.0f);
drawBox(cx, cy + int(halfCX * 0.015f), labelColor);
obs_source_video_render(programLabel);
gs_matrix_pop();
/* ----------------------------- */
endRegion();
}