Fix: Rendered animation player text too small on macOS

This commit is contained in:
Brecht Van Lommel
2025-01-23 13:32:31 +01:00
parent d5d686d540
commit 426a9cdcbb

View File

@@ -1667,7 +1667,8 @@ static void playanim_window_zoom(PlayState &ps, const float zoom_offset)
static bool playanim_window_font_scale_from_dpi(PlayState &ps)
{
const float scale = (GHOST_GetDPIHint(ps.ghost_data.window) / 96.0f);
const float scale = (GHOST_GetDPIHint(ps.ghost_data.window) *
GHOST_GetNativePixelSize(ps.ghost_data.window) / 96.0f);
const float font_size_base = 11.0f; /* Font size un-scaled. */
const int font_size = int((font_size_base * scale) + 0.5f);
bool changed = false;