I am working on a project using SDL2 and so far its been pretty straightforward. However, I’ve come to a problem i cannot solve, so I’ve come here for your opinion.
You see, i had a problem with “bleeding pixel” a while back, and i successfully resolved it by using SDL_RenderSetIntegerScale. While this worked, it had the drawback that i could not make my SDL2 project full screen without having letterbox, both vertically and horizontally.
I was content for a while, but now i would like to actually be able to go full screen without the letterboxing. I’ve read that i can use a backbuffer, change my render target with SDL_SetRenderTarget, renderCopy to the back buffer then switch and renderpresent. It work flawlessly for solving the bleeding pixel issue and removing the letterboxing. Obviousbly, my sprite are rendered stretched, but this is not the issue at hand.
As you can see, my font is rendered extremely blurry with the back buffer. No other sprites are rendered blurry unless it is scaled down.
I’ve tried for the last three days to fix the issue, but alas, i’ve failed and now i’m turning to you. If someone have experience with this problem, i’ll be more than happy to listen.
I do use
SDL_RenderSetScale, which is twice my logical size,
SDL_RenderSetIntegerScale (false when using back buffer, true otherwise)
I use SDL_RenderCopyEx for my rendering
SDL_RenderPresent for my rendering
For reference, this was the bleeding pxiel issue here https: // imgur .com/KkWtfoC
Thank you for your time.