Skip to content

Commit

Permalink
Fix how Hades behaves on High DPI retina screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arignir committed Oct 16, 2024
1 parent 6c1628f commit 495055a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resource/macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
<string>public.app-category.games</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) 2021-2024 - The Hades Authors</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<string>True</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion source/app/sdl/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 495055a

Please sign in to comment.