Forráskód Böngészése

UI: add a default black background to the PGM output of the multiview

Stéphane L 6 éve
szülő
commit
a8944d0a34
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      UI/window-projector.cpp

+ 3 - 0
UI/window-projector.cpp

@@ -589,6 +589,9 @@ void OBSProjector::OBSRenderMultiview(void *data, uint32_t cx, uint32_t cy)
 	window->offset = labelOffset(programLabel, window->pvwprgCX);
 	calcPreviewProgram(true);
 
+	paintAreaWithColor(window->sourceX, window->sourceY, window->ppiCX,
+		window->ppiCY, backgroundColor);
+
 	// Scale and Draw the program
 	gs_matrix_push();
 	gs_matrix_translate3f(window->sourceX, window->sourceY, 0.0f);