Skip to content

SDL_GetRenderLogicalPresentation returning w == 0 and h == 0 in SDL_LOGICAL_PRESENTATION_DISABLED mode #13791

@Froncu

Description

@Froncu

The documentation for SDL_GetRenderLogicalPresentation states:

This function gets the width and height of the logical rendering output, or the output size in pixels if a logical resolution is not enabled.

From my testing, calling SDL_GetRenderLogicalPresentation with the current mode being SDL_LOGICAL_PRESENTATION_DISABLED will still return the last values set using SDL_SetRenderLogicalPresentation or the default ones (that being SDL_LOGICAL_PRESENTATION_DISABLED, w == 0 and h == 0) instead of the output size in pixels, which should be my window size. Am I misunderstanding something here?

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