[SDL2]-SDL_RenderSetLogicalSize-Disable Letterboxing?

johntimber

2018-05-29 14:35:35

Hello,



SDL_RenderSetLogicalSize can be used to scale the SDL window to resized window dimensions. The default action of SDL_RenderSetLogicalSize is to scale with letterboxing. (maintaining an aspect ration).Is there some way to disable letterboxing in SDL_RenderSetLogicalSize and tell SDL2 to fill entire resized screen?



Please help.



I didn't find the right solution from the Internet.



References:-

https://forums.libsdl.org/viewtopic.php?p=38664

motion graphics video quote



Thanks