I'm facing a difficult problem and I'm wondering if there isn't builtin ways to solve it.
Thing is, I want the game to use one single "virtual" resolution. And use Gosu to scale it to the actual resolution of the window (which will be fullscreen, so it kinda already does that automatically).
Problem is, the fullscreen doesn't keep the scale ratio proportional (and it looks quite ugly). And I want it to do so (like when you wath a movie on a screen that doesn't fit, you end up with black borders on the sides of the screen).
I would like to know if Gosu can already help me do that ?
And if not, what would be the simplest way to do it ?
Thank you !
EDIT: I found this in Google, it doesn't give any solution for this case, but it shows exactly what I want to obtain :http://blog.acamara.es/2012/02/05/keep-screen-aspect-ratio-with-different-resolutions-using-libgdx/
In case I failed to explain the issue properly. Just look at the three images at the bottom of the page.