Results 1 to 6 of 6

Thread: Minimize a DD game

  1. #1

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181

    Minimize a DD game

    Hey everyone I guess this one is one for Zaei, but everyone else is welcome too

    I just read through some old code I wrote and found some surface restore methods... (Ddraw 7)
    so I thought I put those so the game will be able to continue after beeing send to background (it's ddraw fullscreen) I could not check though since it did not let me push it to background...

    What do I need to do to make my DD games able to be minimized and still work after maximizing them again?
    Sanity is a full time job

    Puh das war harter Stoff!

  2. #2
    Member Yhoko's Avatar
    Join Date
    May 2002
    Posts
    47
    You have to restore the surfaces, see the DDraw sample coming with the SDK for further details

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You'll have to load them all from file again too, unless you have them in memory
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    and if I do so the game wont crash?
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Mmm, is it crashing when you minimise it or when you restore it?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well why debugging it will crash on the next blt command....
    if compiled the programs don't even care to go to background... or if I force them the hard way they won't come back either
    Sanity is a full time job

    Puh das war harter Stoff!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width