Skip to content

Commit

Permalink
Updated documentation so it's clear you should use SDL_SetWindowDispl…
Browse files Browse the repository at this point in the history
…ayMode() to change the size of fullscreen windows.
  • Loading branch information
slouken committed Sep 9, 2017
1 parent b2ba896 commit 569c222
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/SDL_video.h
Expand Up @@ -604,15 +604,16 @@ extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window * window,
* \param w The width of the window, in screen coordinates. Must be >0.
* \param h The height of the window, in screen coordinates. Must be >0.
*
* \note You can't change the size of a fullscreen window, it automatically
* matches the size of the display mode.
* \note Fullscreen windows automatically match the size of the display mode,
* and you should use SDL_SetWindowDisplayMode() to change their size.
*
* The window size in screen coordinates may differ from the size in pixels, if
* the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
* high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
* SDL_GetRendererOutputSize() to get the real client area size in pixels.
*
* \sa SDL_GetWindowSize()
* \sa SDL_SetWindowDisplayMode()
*/
extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
int h);
Expand Down

0 comments on commit 569c222

Please sign in to comment.