Hello community
In a program, i've set up a fixed Virtual Resolution of 1280x960, within a window of 1920x1080.
I try to :
1) Draw my graphics in an image with the same size as the Virtual Resolution.
2) Put the rendered image in a Sprite
3) Scale the Sprite to fit the window's size
My problem is that Sprites are based on the Virtual Resolution.
I don't know how to calculate its new Size & its new Position for it to fit the window.
Any idea of how to calculate that, please ?
My Freewares here : http://www.retro-bruno.com