Merge remote-tracking branch 'sprainbrains/master'

This commit is contained in:
Francesco Abbate 2021-08-19 09:47:53 +02:00
commit e0722448a3
1 changed files with 4 additions and 0 deletions

View File

@ -18,9 +18,13 @@
SDL_Window *window; SDL_Window *window;
static double get_scale(void) { static double get_scale(void) {
#ifdef __APPLE__
return 1.0;
#else
float dpi = 96.0; float dpi = 96.0;
SDL_GetDisplayDPI(0, NULL, &dpi, NULL); SDL_GetDisplayDPI(0, NULL, &dpi, NULL);
return dpi / 96.0; return dpi / 96.0;
#endif
} }