I've got a very simple learner app which simply renders a couple of triangles on the screen. Window resizing with the RenderForm works automatically but scales the viewport, meaning you get upscaled pixels when sizing up, and so forth. In order to handle resizing properly, I've tried to update the swap chain, render target and viewport when the window size changes, and this seems to work, as long as the aspect ratio is unchanged, but when the aspect ratio changes, the polygon edges seem to render poorly, with odd two-pixel jumps in the horizontal or vertical directions, even though I've enabled antialiasing.
My code is here: https://gist.github.com/axefrog/7104217
Before resizing:
After resizing:
Any idea what step I'm missing?