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

Commit 2bd9144e authored by Tim Murray's avatar Tim Murray
Browse files

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

Change-Id: I05820b5e9b696662bd94dbcd4721298e92f1fc1a
parent e3c4001c
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)))