none
DirectDraw application goes black after screen orientation change RRS feed

  • Question

  • I have a directdraw application (in c) that becomes black in color once the user rotates the screen using a button on the application. The button uses enumdisplaysettings to do this. I have tested this on both Nvidia and ATI, the problem persists.

    Is there a way to make a directdraw application "displaysettings-proof"? Can I add some code to get back the display once the screen is rotated?

    I read this thread - http://social.msdn.microsoft.com/Forums/is/windowsmobiledev/thread/911394d5-bc13-4f48-b8ad-c605b517a2e5

    Seems like a solution. or is it?

    Not sure how this can apply to desktop situations though. Can someone give me a sample code to reinitialize the directdraw ojbect, primary and back buffers?

    Mods, can you please move this to the right forum?

    • Edited by Zoyidian Sunday, March 4, 2012 3:34 AM Change forum request
    Saturday, March 3, 2012 7:46 PM