Archived

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

Densun

ddraw and windowed mode

Recommended Posts

What''s a function that will change that size of the client area? Do I not want to use SetDisplayMode after switching into the DDSCL_NORMAL cooperative mode?

Share this post


Link to post
Share on other sites
Hi

If you wan''t, that Direct Draw only draws into a specific Window, you need to make A Blit Operation, with the Rectangle Data of the Target Window. You should also specify a Clipper Object.
The SetDisplayMode is only neccesary if you wan''t to use Fullscreen, and if you are in Fullscreen and wan''t the normal desktop reolution, you can use the RestoreDisplayMode Function.

Lars

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you wanna change the size or the position of your window, then, SetWindowPos(), SetWindowLong(), GetSystemMetrics() and AdjustWindowRectEx() will help you

Kwanji - a game developer in Japan.

Share this post


Link to post
Share on other sites