Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!).

Fixes Bugzilla #3223.
This commit is contained in:
Ryan C. Gordon
2016-01-07 14:02:37 -05:00
parent 1d1ba58f28
commit 416d046663
4 changed files with 27 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ extern void Cocoa_InitModes(_THIS);
extern int Cocoa_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect);
extern int Cocoa_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect);
extern void Cocoa_GetDisplayModes(_THIS, SDL_VideoDisplay * display);
extern int Cocoa_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hpdi, float * vdpi);
extern int Cocoa_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
extern void Cocoa_QuitModes(_THIS);