use password size

This commit is contained in:
Felix Salcher 2025-06-03 11:51:59 +02:00
parent 801491a190
commit 1ab3582ec7
No known key found for this signature in database

View file

@ -190,7 +190,7 @@ void CPasswordInputField::updatePassword() {
request.type = CAsyncResourceGatherer::eTargetType::TARGET_TEXT;
request.props["font_family"] = fontFamily;
request.props["color"] = colorConfig.font;
request.props["font_size"] = (int)(std::nearbyint(configSize.y * dots.size * 0.5f) * 2.f);
request.props["font_size"] = (int)(std::nearbyint(configSize.y * password.size * 0.5f) * 2.f);
password.resourceID = textResourceID;