Browse Source

UI: Simplify multiview draw code

Shaolin 7 years ago
parent
commit
98839524f7
1 changed files with 0 additions and 21 deletions
  1. 0 21
      UI/window-projector.cpp

+ 0 - 21
UI/window-projector.cpp

@@ -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();
 }