Jump to content
  • Advertisement

Archived

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

The C modest god

GDI interference on directdraw fullscreen mode

This topic is 5366 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When in directdraw fullscreen mode, I get some windows GDI drawings on it. For example, I have a buffered full screen mode direct draw device with both the front and the buffer set to white and then suddenly a black screen flicks eventough either the front or the back buffer are suppose to be seen. Do you know how to deal with this problem?

Share this post


Link to post
Share on other sites
Advertisement
the whole point of DirectX is that you eliminate the GDI etc...
if its flickering chances are your still using the GDI which is working seperatly to the DX system..so they will interfear...

you can try entering this code after you flip the buffers to try and counter it...

// code begin

//put this with your other variables
DDBLTFX ddBltFx;

//put this in your setup somewhere
ddBltFx.dwSize = sizeof(ddBltFx);
ddBltFxdwFillColor = 0x00000000;

// Put this after your flipping
YourBackBuffer->Blt(NULL,NULL,NULL,NULL, DDBLT_COLORFILL | DDBLT_WAIT, &ddBltFx);

// code end

Im not sure if it will stop the flickering but it may help....

edit-
and also if you are using ANY GDI functions such as fill screen or whatever.. then get rid of it and get DX to do the appropriate command...

[edited by - Grofit on February 6, 2004 1:53:33 PM]

[edited by - Grofit on February 6, 2004 2:02:49 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!