Archived

This topic is now archived and is closed to further replies.

Javelin

Wierd Problem

Recommended Posts

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...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
I have solved my problem now, but thanks for the answers...



// Javelin
-- Why do something today when you can do it tomorrow... --

Share this post


Link to post
Share on other sites