mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 19:14:55 +01:00
Use reasonable starting value
This commit is contained in:
parent
3d4551b263
commit
9e76d3eb4e
1 changed files with 2 additions and 2 deletions
|
@ -548,8 +548,8 @@ colorumax(const double h[3], double l, double l1, double l2)
|
||||||
}
|
}
|
||||||
|
|
||||||
const double lv = (l - l1) / (l2 - l1); /* Remap l to the whole interval [0,1] */
|
const double lv = (l - l1) / (l2 - l1); /* Remap l to the whole interval [0,1] */
|
||||||
double u = 1000000;
|
double u = DBL_MAX;
|
||||||
double v = u;
|
double v = DBL_MAX;
|
||||||
for (int k = 0; k < 3; k++) {
|
for (int k = 0; k < 3; k++) {
|
||||||
if (h[k] > DBL_EPSILON) {
|
if (h[k] > DBL_EPSILON) {
|
||||||
const double uu = fabs((1-l)/h[k]);
|
const double uu = fabs((1-l)/h[k]);
|
||||||
|
|
Loading…
Reference in a new issue