In my SDL game, I would like to maintain a fixed resolution of the game zone, both for the game process and for performance.
What I wanted to do was have a small resolution (for example, 320 * 240) and when I resize the window / switch to full screen mode, allowing the SDL / graphics card to scale every pixel.
However, the following problems occur:
- The resulting image becomes blurry.
- The actual drawing area is smaller than the screen, black areas on top, bottom left and right
What can I do to solve this problem?
I already saw this work in other games before
source
share