Skip to main content
gamedev.net
🔒 Locked

DirectDraw problem

Started by UriKiller 0 replies 450+ views
Original Post
UriKiller
UriKiller
I decided to use DirectDraw for fast 2d drawing and preventing the animations and graphics to flicker on the screen. In DirectDraw I need to create a backbuffer and a front buffer and then flip them all the time. The problem is that I cannot create a surface that can use a flip chain, unless I am in fullscreen mode. In windowed mode, after I did all the DirectDraw Initializations and drawing, and I used the Blt method instead of Flip, the output still looks the same: Horibble - everything is not smooth, straight lines look like stairs etc... How to make DirectDraw work normally in windowed mode? or: Is there any way to find out when the next screen flyback (vertical retrace) will occur (without DirectX)?
TSL
TSL
you can consult the SDK sample of Directx8.0

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.