From eb844a4b7725822c609ef6a3403c0f1c5635e693 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Fri, 2 Feb 2024 14:40:17 -0800 Subject: [PATCH] When computing suitable initial font scale for a display, let 250% be the maximum size. Workaround for #1274. PiperOrigin-RevId: 603791510 Change-Id: I37aa3431dcaf42dae8daa77ed87e108ca4d78ea0 --- simulate/simulate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index e4f248db..83dccb8e 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -1262,7 +1262,7 @@ int ComputeFontScale(const mj::PlatformUIAdapter& platform_ui) { fs = 150; } fs = mju_round(fs * 0.02) * 50; - fs = mjMIN(300, mjMAX(100, fs)); + fs = mjMIN(250, mjMAX(100, fs)); return fs; }