mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
make if condition easier
This commit is contained in:
parent
50b4cdad48
commit
5fdd752df4
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ bool CPasswordInputField::draw(const SRenderData& data) {
|
|||
} else {
|
||||
password.asset = g_pRenderer->asyncResourceGatherer->getAssetByID(password.resourceID);
|
||||
|
||||
if (password.asset != nullptr) {
|
||||
if (password.asset) {
|
||||
auto size = password.asset->texture.m_vSize;
|
||||
double offset = (inputFieldBox.h - size.y) / 2.0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue