include/SDL_video.h
changeset 9813 0652406e46c6
parent 9619 b94b6d0bff0f
child 9995 d79480c1e151
     1.1 --- a/include/SDL_video.h	Tue Jul 28 00:12:50 2015 -0400
     1.2 +++ b/include/SDL_video.h	Wed Jul 29 17:18:56 2015 -0700
     1.3 @@ -297,6 +297,18 @@
     1.4  extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect);
     1.5  
     1.6  /**
     1.7 + *  \brief Get the dots/pixels-per-inch for a display
     1.8 + *
     1.9 + *  \note Diagonal, horizontal and vertical DPI can all be optionally
    1.10 + *        returned if the parameter is non-NULL.
    1.11 + *
    1.12 + *  \return 0 on success, or -1 if no DPI information is available or the index is out of range.
    1.13 + *
    1.14 + *  \sa SDL_GetNumVideoDisplays()
    1.15 + */
    1.16 +extern DECLSPEC int SDLCALL SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi);
    1.17 +
    1.18 +/**
    1.19   *  \brief Returns the number of available display modes.
    1.20   *
    1.21   *  \sa SDL_GetDisplayMode()