Swapped arguments for SDL_GetRendererOutputSize


In the document, it says,
int SDL_GetRendererOutputSize(SDL_Renderer* renderer,
int* w,
int* h)

I am coding within ubuntu. However, it seems the order for w and h are swapped.

That’s the correct order (w, then h). Are you sure they’re swapped? That seems like an unlikely bug.

It was my mistake. It is not a bug.
Thanks for your reply.

1 Like