slock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 934febedfa35ed19de89ce71f931bead030f5e89
parent 433e9618820375b603f46c272ee2ca4740c8100f
Author: bakkeby <bakkeby@gmail.com>
Date:   Wed,  3 Sep 2025 10:12:48 +0200

alpha: change alpha variable from float to double

The float value caused the opacity to be calculated as 0 due to
precision loss when multiplying with unsigned int 0xffffffff.

Diffstat:
Mconfig.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -86,7 +86,7 @@ ResourcePref resources[] = { #if ALPHA_PATCH /* lock screen opacity */ -static const float alpha = 0.9; +static const double alpha = 0.9; #endif // ALPHA_PATCH /* treat a cleared input like a wrong password (color) */