int
SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect)
{
CHECK_DISPLAY_INDEX(displayIndex, -1);
if (rect) {
...... omitted code ........
}
return 0;
}
If rect is initialized to NULL, nullptr, or is just garbage, SDL_GetDisplayBounds still returns the success code, 0. Is there a reason for this or is it a mistake? Would ask on the libsdl forums, but I haven't gained write access there yet.