Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f89a5ef9 authored by Tim Murray's avatar Tim Murray Committed by Android (Google) Code Review
Browse files

Merge "Convert constant to float instead of double in mandelbrot.rs."

parents 321020b7 2bd9144e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ void root(uchar4 *v_out, uint32_t x, uint32_t y) {
    // write a non-transparent black pixel
    *v_out = (uchar4){0, 0, 0, 0xff};
  } else {
    float mi3 = gMaxIteration / 3.;
    float mi3 = gMaxIteration / 3.f;
    if (iter <= (gMaxIteration / 3))
      *v_out = (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
    else if (iter <= (((gMaxIteration / 3) * 2)))