Skip to content

SDL_GetCurrentRenderOutputSize() sometimes reports the wrong size #14727

@klartext

Description

@klartext

I used SDL_GetCurrentRenderOutputSize() in conjunction with SDL_SetWindowFullscreen().

My first impression was, that toggling the fullscreen does not work properly.

After some exploration and experimentation I came to the conclusion, that the problem comes from
SDL_GetCurrentRenderOutputSize() which sometimes reports the wrong size.

I then also used SDL_SyncWindow() (which I think should not be necessary to be used, but hoped it can give a hint for locating the problem)... and my first impression was it helps, but then it turned out that the problem still occurs.
So the syncing does not help.
In the end I think, that the problem really comes from SDL_GetCurrentRenderOutputSize().

This is happening on Arch-Linux, and it is package version 3.2.28-1.

I saw some other Issues that mentioned problems with setting the Size... and without looking into details of these issues, I wonder if some of them are related to wrong size reporting by SDL_GetCurrentRenderOutputSize().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions