Wierd Problem

Started by
3 comments, last by Javelin 22 years, 8 months ago
Hi, I''ve got a really wierd problem with DirectDraw7 in fullscreen mode. Everything works fine if I use the same resulotion as in windows, but if I try to use a different one, my primary surface freaks out. I''m just able to draw on the surface that originally was my back buffer, even if I make a flip. The surface that originally was my primary is just white no matter what I try to do with it... This keeps really bugging me and I would be very happy if anyone could help me out...
// Javelin// Assumption is the mother of all fuckups...
Advertisement
You can never draw to the primary surface, only to the back surface(s). When you call flip() your primary and back surface pointer switches place so it is actually the other surface you are blitting to.

Johan Torp - http://www.destruction.nu
Johan Torp - http://www.destruction.nu
Yes I know... I guess I wasn''t too clear about my problem
The problem is that after the first filp I cant write to my back surface so by the second flip my screen goes white. By the third flip everything is ok, fourth flip bad and so on...

The thing is that this is not the case if I opens a fullscreen mode that is the same as in Windows...

Hmmm... wonder if this made it any clearer... or maybe I missunderstod your answer.
// Javelin// Assumption is the mother of all fuckups...

In windows mode you can''t flip but I don''t remember well how you''re supposed to show your cool game graphs.

NullPointer has written a article about how to switch from full screen mode to windows mode for gamedev. You should have a look on it. search it in the Resources/Articles&Resources page.
I have solved my problem now, but thanks for the answers...



// Javelin
-- Why do something today when you can do it tomorrow... --
// Javelin// Assumption is the mother of all fuckups...

This topic is closed to new replies.

Advertisement