diff options
Diffstat (limited to 'intern/ghost/GHOST_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index f886dfd9d7d..ab5feb287d8 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -852,6 +852,16 @@ extern int GHOST_toggleConsole(int action); */ extern int GHOST_confirmQuit(GHOST_WindowHandle windowhandle); +/** + * Use native pixel size (MacBook pro 'retina'), if supported. + */ +extern int GHOST_UseNativePixels(void); + +/** + * If window was opened using native pixel size, it returns scaling factor. + */ +extern float GHOST_GetNativePixelSize(void); + #ifdef __cplusplus } |