From 495055a7993371ab6a6395431abf5a7a33b897d7 Mon Sep 17 00:00:00 2001 From: Arignir Date: Thu, 17 Oct 2024 01:40:43 +0200 Subject: [PATCH] Fix how Hades behaves on High DPI retina screens. --- resource/macos/Info.plist | 4 ++++ source/app/sdl/video.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/resource/macos/Info.plist b/resource/macos/Info.plist index d3ff64c..6e7b7c8 100644 --- a/resource/macos/Info.plist +++ b/resource/macos/Info.plist @@ -26,5 +26,9 @@ public.app-category.games NSHumanReadableCopyright Copyright (C) 2021-2024 - The Hades Authors + NSPrincipalClass + NSApplication + NSHighResolutionCapable + True diff --git a/source/app/sdl/video.c b/source/app/sdl/video.c index 3d5dcab..d4bc5e5 100644 --- a/source/app/sdl/video.c +++ b/source/app/sdl/video.c @@ -239,7 +239,7 @@ app_sdl_video_update_scale( cfg = ImFontConfig_ImFontConfig(); cfg->SizePixels = round(13.f * app->ui.scale * 3.); cfg->GlyphOffset.y = round(13.f * app->ui.scale * 3.); - cfg->RasterizerDensity = app->ui.scale * 6.f; + cfg->RasterizerDensity = app->ui.scale * 2.f; app->ui.fonts.big = ImFontAtlas_AddFontDefault(app->ui.ioptr->Fonts, cfg); ImFontAtlas_Build(app->ui.ioptr->Fonts);