I am making a program that uses directdraw fullscreen. The screen doesnt redraw every frame, it makes any changes to the screen on the primary surface as they are needed.
When the program starts up, it draws the initial screen on the primary surface.
Here is the problem: Sometimes, when the image comes back on the screen, the screen is blank, just the backcolor of my target form. I am not sure why this happens. My best guess is that I am drawing it too early.
If I am right, and I don't know if I am, then the solution would be to have the program wait until the resolution has changed and all ready for drawing.
Here is the question: Does anyone know how, if possible, you can detect when directx is ready for drawing?
When the program starts up, it draws the initial screen on the primary surface.
Here is the problem: Sometimes, when the image comes back on the screen, the screen is blank, just the backcolor of my target form. I am not sure why this happens. My best guess is that I am drawing it too early.
If I am right, and I don't know if I am, then the solution would be to have the program wait until the resolution has changed and all ready for drawing.
Here is the question: Does anyone know how, if possible, you can detect when directx is ready for drawing?