floats will be floats
This commit is contained in:
parent
9c03998cd0
commit
24c1379e48
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ void drawmandelbrot(SDL_Surface *surface) {
|
||||||
int y = i / surface->w;
|
int y = i / surface->w;
|
||||||
int x = i % surface->w;
|
int x = i % surface->w;
|
||||||
|
|
||||||
float complex c = ((3.0 * x / surface->w) - 2.0)
|
float complex c = ((3.0f * x / surface->w) - 2.0f)
|
||||||
+ I * ((2.0 * y / surface->h) - 1.0);
|
+ I * ((2.0f * y / surface->h) - 1.0f);
|
||||||
|
|
||||||
bool diverges = false;
|
bool diverges = false;
|
||||||
float complex z = 0;
|
float complex z = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue