From 541ba33714376d29795fcc22add8e624603d9727 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Sat, 19 Oct 2024 16:01:08 -0400 Subject: [PATCH] Fix SDL_GetClosestFullscreenDisplayMode documentation It returns false on failure, not NULL. --- include/SDL3/SDL_video.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_video.h b/include/SDL3/SDL_video.h index 15bcf7a872..aafd734819 100644 --- a/include/SDL3/SDL_video.h +++ b/include/SDL3/SDL_video.h @@ -656,7 +656,7 @@ extern SDL_DECLSPEC SDL_DisplayMode ** SDLCALL SDL_GetFullscreenDisplayModes(SDL * refresh rate default to the desktop mode if they are set to 0. The modes * are scanned with size being first priority, format being second priority, * and finally checking the refresh rate. If all the available modes are too - * small, then NULL is returned. + * small, then false is returned. * * \param displayID the instance ID of the display to query. * \param w the width in pixels of the desired display mode.