Video Creator catpures do not scale down below "native resolution"
I was doing some testing in #919 and found a bug in the image capture. I tried searching for it because I think I had heard someone saying this, but I could not find it.
Anyway, like the title says if the target size is modified in such a way that if it results in a number smaller than the native resolution, DesModder preserves the ratio of the target resolution but uses the width of the native resolution.
For example if I have a graph with a viewport resolution of 1420x909 and set the target resolution to 480x270, then the resulting capture with the "target same pixel ratio" unchecked is 1420x798. This has approximately the correct aspect ratio of 16:9.
Further testing ²
I made some makeshift™ integration test for the screenshot resolution in this branch to verify more concretely what I said above: https://github.com/SlimRunner/DesModder/tree/test-screenshot-ratios
The tests aren't great because they stop at the first instance of error, so you cannot really have a big picture of what is wrong other than commenting out by hand individual tests. I also could not figure out how to change the size of the spawned browser by puppeteer.
Anyway, the integration tests did verify exactly the same thing I said above.