mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
update doc strings
This commit is contained in:
parent
d7ac370d9e
commit
36743940f1
1 changed files with 2 additions and 1 deletions
|
|
@ -206,6 +206,7 @@ void CPasswordInputField::updatePassword() {
|
|||
double offset;
|
||||
CBox inputFieldBox = {pos, size->value()};
|
||||
|
||||
// Loops and trims the password until it's length is less than the available space
|
||||
while (true) {
|
||||
std::string trimmedContent = passwordContent;
|
||||
|
||||
|
|
@ -227,7 +228,7 @@ void CPasswordInputField::updatePassword() {
|
|||
assetSize = g_pRenderer->asyncResourceGatherer->getTextAssetSize(request);
|
||||
offset = (inputFieldBox.h - assetSize.y) / 2.0;
|
||||
|
||||
// It can be safely assumed that the eye asset is always available
|
||||
// It can be safely assumed that the eye asset is always available because the user can't type fast enough
|
||||
if (!eye.openAsset || assetSize.x <= (inputFieldBox.w - offset * 2 - eye.margin - eye.openAsset->texture.m_vSize.x)) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue