Use 1.408 factor to create the magnitude look up talbe.

Previously 1.4 was used that prevented to use the full 0-255 scale.
Thanks to @keenerd for reporting this issue.
This commit is contained in:
antirez 2013-01-05 17:03:03 +01:00
parent d709a21f4f
commit f01670e425

View File

@ -223,7 +223,7 @@ void modesInit(void) {
Modes.maglut = malloc(129*129); Modes.maglut = malloc(129*129);
for (i = 0; i <= 128; i++) { for (i = 0; i <= 128; i++) {
for (q = 0; q <= 128; q++) { for (q = 0; q <= 128; q++) {
Modes.maglut[i*129+q] = round(sqrt(i*i+q*q)*1.4); Modes.maglut[i*129+q] = round(sqrt(i*i+q*q)*1.408);
} }
} }
} }