Sign in to follow this  

Preventing pixelation on window resize

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

This topic is 4863 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this