SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Changing the color outside of renderer's letterbox region

Open siteswapv4 opened this issue 6 months ago • 1 comments

In SDL2 and early versions of SDL3 setting a letterbox logical presentation still allowed changing the color of the bars when clearing the renderer. Now the documentation clearly states in the "SDL_RendererLogicalPresentation" enum that the bars are black and indeed we can't change their color anymore. Would it be possible to create a new function or a new presentation mode that allows changing the bar color again ? It was a great feature to be able to customize the color of the letterbox bars to fit the app color palette.

siteswapv4 avatar Jun 06 '25 20:06 siteswapv4

This is a good idea.

icculus avatar Jun 06 '25 20:06 icculus

This was implemented in https://github.com/libsdl-org/SDL/commit/fbbc29159a25f26d789694a74c2d1d3216dfb49d.

slouken avatar Sep 07 '25 20:09 slouken