floats will be floats

master
neingeist 12 years ago
parent 9c03998cd0
commit 24c1379e48

@ -25,8 +25,8 @@ void drawmandelbrot(SDL_Surface *surface) {
int y = i / surface->w;
int x = i % surface->w;
float complex c = ((3.0 * x / surface->w) - 2.0)
+ I * ((2.0 * y / surface->h) - 1.0);
float complex c = ((3.0f * x / surface->w) - 2.0f)
+ I * ((2.0f * y / surface->h) - 1.0f);
bool diverges = false;
float complex z = 0;

Loading…
Cancel
Save