Fix: Rendered animation player text too small on macOS
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user