My game is in window mode which allows users to resize the game window almost freely, which means the the ratio of the width/height, and the size of the window can be arbitrary (though the window has largest and smallest restrictions)
To make the render result be displayed nicely, a same size d3d device would be preferred to create (thus the back-buffer pixel can be matched with the screen pixel and we could get a ratio right and clear image)
Though I can get the Caps and the supported enumerated resolution list, I am not sure if a windowed resolution can be accepted by d3d system. (e.g. we have 1024x768 /800x600 in the Caps, but we need to create 1000x700 back-buffer)
My question is, how can I make sure if a certain resolution can be created and what's the practical way to handle the problem.
Thank you very much!