From 934febedfa35ed19de89ce71f931bead030f5e89 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 3 Sep 2025 10:12:48 +0200 Subject: [PATCH] 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. --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 9f7baac1e113a059a1fc9d452b2607716f409568..47b693ed1cd191f4512ec1df0f2ed9a4ecb69b72 100644 --- 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) */