Jump to content
  • Advertisement
Sign in to follow this  
chadmv

Preventing pixelation on window resize

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

Hello, When I try to implement a WM_SIZE handler to keep my geometry from getting deformed, my edges get really jagged when I enlarge my window. Currently, I reset the device. Then I set my new window dimensions, calculate the new aspect ratio and then create and set the projection matrix. Am I missing something? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I think you have to recreate all the resources on the video card (vertex buffers, textures, etc.) as well, though that should not affect it that way... Are you sure you are setting the new Presentation parameters structure to the correct winbdow size? If you set it too small, DX will strech the image to fit the window. Make sure to use the client size for the window.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!