• Advertisement
Sign in to follow this  

Difference between Renderform and Windows Form?

This topic is 1907 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 I use a SlimDX RenderForm in the Visual Studio 2012 debugger, the output looks fine. However, when I use a Windows Form, the debugging information in the window is huge and pixelated. Any ideas on what I am doing wrong? I've attached an image of what the Windows Form looks like.

Share this post


Link to post
Share on other sites
Advertisement

The first idea I jump to is welcome to windows and DPI problems but it's not likely this is actually the case here.  Post code and give more information we can try to help, best we can guess is either you are letting the device context handle text scaling which would lead to DPI related scaling where windows tries to make your font's as big as the user wants instead of following your guidelines (although this normally doesn't have anything to do with rendering api's just WinForms) or that measuring systems, resolution, field of view, and or aspect ratios are different.  Quite a slew of "could be" things that can be mentioned, posting some code will narrow that down to some more likely culprits.

Share this post


Link to post
Share on other sites

So, I am not actually drawing the text. It is part of the Visual Studio debugging framework. My code is as bare bones as you can get. I am basically doing what you would find on the SlimDX tutorial for drawing a triangle, except I am not using the RenderForm class. This is what gives me my suspicion that that difference is the cause of the problem. One thing to point out also is the pixelated triangle. It just seems like something is wrong, but I don't have the background in graphics to tell you what it is.

Share this post


Link to post
Share on other sites

I found the error. I was changing the size of the window after I initialized the swap chain/viewport etc. Sometimes I wonder...

Share this post


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

  • Advertisement