DestroySurfaces(…)Your shutdown code is also different. Instead of releasing just the DirectDraw object and the primary surface, you also have to release your back buffer and clipper. Again, use an if statement to separate the exclusive code from the windowed code:
Put your own exclusive code in the exclusive section, and we'll add the windowed code. This is the code to add in the windowed code section:
Once you've added that code, we'll go on to the game loop.
|
||||||||||||||||||||