Advertisement Jump to content


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

The C modest god

GDI interference on directdraw fullscreen mode

This topic is 5464 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
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 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

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

// Put this after your flipping

// code end

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

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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!