locked
Problem playing video with DX9 RRS feed

  • Question

  • I have writting a video playback window using DirectX9.  For every frame of the video, I render the video to an off screen surface, then Stretch it to window size to the devices back buffer and then uses the devices Present to paint it to the actual window.  Most of the time this works correctly.  But sometimes it will not paint the entire window.  I've seen this when another window comes up and obscures part of the video window while the video is playing.  When the second window goes away, the Present only paints the portion that was obscured.  The rest of the window stops painting.  Usually, if you click on the window, then the entire window starts painting again.  So it is like DX9 is clipping the paint in this instance to only the portion that was obscured.

    Is there any way to always just paint the entire window?  I have set the Video hint when creating the device.  I have set very setting I could find in the help file regarding clipping and nothing helps this problem.

    Jeff
    • Moved by Yan-Fei Wei Monday, June 23, 2008 5:46 AM off-topic off C++
    Thursday, June 19, 2008 2:11 PM

Answers

All replies