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:
committed by
Copybara-Service
parent
1ed8694dbe
commit
eb844a4b77
@@ -1262,7 +1262,7 @@ int ComputeFontScale(const mj::PlatformUIAdapter& platform_ui) {
|
|||||||
fs = 150;
|
fs = 150;
|
||||||
}
|
}
|
||||||
fs = mju_round(fs * 0.02) * 50;
|
fs = mju_round(fs * 0.02) * 50;
|
||||||
fs = mjMIN(300, mjMAX(100, fs));
|
fs = mjMIN(250, mjMAX(100, fs));
|
||||||
|
|
||||||
return fs;
|
return fs;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user