|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: GameProgrammer: DirectDraw
When you lose the screen and then get it back you have to set it up again and then redraw the whole thing. Take a look at the examples in the DirectX SDK, such as fox bear, for code that does that. Bob P. Sina Ahmadian wrote: > > ----- Original Message ----- > From: Mark Traunero <anfaroth@Hotmail.com> > To: <gameprogrammer@gameprogrammer.com> > Sent: Tuesday, August 31, 1999 5:03 AM > Subject: GameProgrammer: DirectDraw > > > Hi. > > > > I am presently trying to write a game in Win95/98 in C++. I use DirectDraw > > 5.0 (I'm a beginner) for graphics. Here is the problem: Every time I put > the > > program in the background (via an Alt+tab), when I come back into my > > program, the screen goes black and DirectDraw doesn't work. I use > > (DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE) in the SetCooperativeLevel function. > > > > I was wondering what I have to do to prevent this from happening, so that > > the user could switch between programs and be able to come back to my > > program with it functioning normally. Can anybody help me? > > > > Anfaroth. > > > > ______________________________________________________ > > Get Your Private, Free Email at http://www.hotmail.com > > ================================================================= > > To SUBSCRIBE or UNSUBSCRIBE please visit > > http://gameprogrammer.com/mailinglist.html > > > > > Hi! > > I suggest you using Adobe PhotoShop 5.2 (the latest version) > > ================================================================= > To SUBSCRIBE or UNSUBSCRIBE please visit > http://gameprogrammer.com/mailinglist.html ================================================================= To SUBSCRIBE or UNSUBSCRIBE please visit http://gameprogrammer.com/mailinglist.html
|
|