When computing suitable initial font scale for a display, let 250% be the maximum size. Workaround for #1274.

PiperOrigin-RevId: 603791510
Change-Id: I37aa3431dcaf42dae8daa77ed87e108ca4d78ea0
This commit is contained in:
Yuval Tassa
2024-02-02 14:40:17 -08:00
committed by Copybara-Service
parent 1ed8694dbe
commit eb844a4b77
+1 -1
View File
@@ -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;
}