Use black video background (MF plugin) for METROPOLIS

This commit is contained in:
bossiel 2014-07-28 01:19:56 +00:00
parent 4c85552471
commit f38177d09f
1 changed files with 4 additions and 0 deletions

View File

@ -362,7 +362,11 @@ static int plugin_win_mf_consumer_video_consume(tmedia_consumer_t* self, const v
// Color fill the back buffer
CHECK_HR(hr = pSelf->pDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pBB));
#if METROPOLIS
CHECK_HR(hr = pSelf->pDevice->ColorFill(pBB, NULL, D3DCOLOR_XRGB(0x00, 0x00, 0x00)));
#else
CHECK_HR(hr = pSelf->pDevice->ColorFill(pBB, NULL, D3DCOLOR_XRGB(0xFF, 0xFF, 0xFF)));
#endif
// Resize keeping aspect ratio and Blit the frame (required)
hr = pSelf->pDevice->StretchRect(