summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-22 20:48:28 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-22 20:49:15 +0200
commit66445c507c4ea9322c91306e7ee0d145b8dbd94d (patch)
tree6ebf77fb17ea4629ff1c8e7c0bc7fcf4d8062f0c /src/Utils.cpp
parentMerge pull request #303 from LorenDB/master (diff)
downloadnheko-66445c507c4ea9322c91306e7ee0d145b8dbd94d.tar.xz
Trade CPU usage for 30MB of members in RAM
Diffstat (limited to '')
-rw-r--r--src/Utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp

index 0bfc82c3..38dbba22 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp
@@ -638,7 +638,7 @@ utils::luminance(const QColor &col) qreal lumRgb[3]; for (int i = 0; i < 3; i++) { - qreal v = colRgb[i] / 255.0; + qreal v = colRgb[i] / 255.0; v <= 0.03928 ? lumRgb[i] = v / 12.92 : lumRgb[i] = qPow((v + 0.055) / 1.055, 2.4); }