Make OverlayManager own the overlay color setting

This commit is contained in:
Cameron Gutman
2019-02-12 20:39:10 -08:00
parent d077c6450f
commit 5788fa7204
3 changed files with 13 additions and 1 deletions

View File

@@ -921,12 +921,13 @@ void DXVA2Renderer::renderFrameAtVsync(AVFrame *frame)
if (m_OverlayFont != nullptr) {
if (Session::get()->getOverlayManager().isOverlayEnabled(Overlay::OverlayDebug)) {
SDL_Color color = Session::get()->getOverlayManager().getOverlayColor(Overlay::OverlayDebug);
m_OverlayFont->DrawTextA(nullptr,
Session::get()->getOverlayManager().getOverlayText(Overlay::OverlayDebug),
-1,
&sample.DstRect,
DT_LEFT | DT_NOCLIP,
D3DCOLOR_ARGB(255, 255, 255, 255));
D3DCOLOR_ARGB(color.a, color.r, color.g, color.b));
}
}