I'm having a difficult time coming up with finding the right hooks and making the calls at the right time to gracefully handle changing screen rotation on a mobile device when rendering the screen using DirectDraw surface.
I know at some point I need to call Restore() and RestoreAllSurfaces() but these don't appear to be working.
I also know that I should expect the DDSURFACEDESC for the primary surface to reflect the width and height of the current screen after doing a Restore() I am not seeing that.
Does anyone have and code samples or links to articles that demonstrate how to accuractely handle this?