Jump to content
  • Advertisement
Sign in to follow this  
wpiyong

VMR9 fullscreen goes black on vista

This topic is 3757 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I do not know if it is the right place to post my question. I am doing a project using vmr9 to render video frame. My project is based on the sample code custom allocator presenter from DX sdk. The prefered rendertarget format is MixerPref9_RenderTargetYUV, and the surface created by AllocateSurfaceHelper is offscreen surface. I am using exclusive full screen mode when create the D3D device, and the setting for the D3D device is m_D3DPP.BackBufferHeight = dm.Height; m_D3DPP.BackBufferWidth = dm.Width; m_D3DPP.FullScreen_RefreshRateInHz = dm.RefreshRate; m_D3DPP.Windowed = FALSE; m_D3DPP.BackBufferFormat = dm.Format; m_D3DPP.Flags = D3DPRESENTFLAG_VIDEO; m_D3DPP.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; m_D3DPP.hDeviceWindow = m_window; m_D3DPP.SwapEffect = D3DSWAPEFFECT_COPY; m_D3DPP.BackBufferCount = 1; but when goes into full screen mode, the screen goes black on vista, but I still can heard the sound from the file. In present the image, I am using StretchRect to copy the offscreen surface to a texture surface, then draw on the screen. This code runs well on XP. I do not know why it could not run on Vista. I appreciate any help. Thanks in advance. Yong

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!