diff --git a/.mandel_classic.c.swp b/.mandel_classic.c.swp deleted file mode 100644 index 4e914e8..0000000 Binary files a/.mandel_classic.c.swp and /dev/null differ diff --git a/mandel_classic.c b/mandel_classic.c index 4f9b0c0..29c6e54 100644 --- a/mandel_classic.c +++ b/mandel_classic.c @@ -251,7 +251,7 @@ void *thread_launcher(void *arguments) args = (piece_args *) arguments; int x,y, small_res_x, small_res_y, init_x, init_y, limit_x, limit_y; - int iteration, split, piece_x, piece_y; + int split, piece_x, piece_y; if(args->total_threads > 2) { @@ -359,7 +359,6 @@ int main(int argn, char **argv) fprintf(stderr,"Could not set video mode: %s\n",SDL_GetError()); // Prepare the resolution and sizes and colors, threads... - int i; iteration_pixels = malloc(res_x * res_y * sizeof(int)); pthread_t threads[number_threads]; piece_args arguments[number_threads]; @@ -374,7 +373,6 @@ int main(int argn, char **argv) for (zoom = 1.0; zoom > -2.5 ; zoom -= 0.01) #endif { - i = 0; int iteration, max_iteration, x, y, res; if((zoom < -0.02) && (zoom > -1.0)) { diff --git a/test.c b/test.c index d4669b0..60ec2a2 100644 --- a/test.c +++ b/test.c @@ -105,7 +105,6 @@ int julia_point(int res_x, int res_y, int image_x, int image_y, double zoom, int double pos_y = map_y(image_y, res_y, 1.0); double x = pos_x; double y = pos_y; - double q, x_term; double xtemp, xx, yy; #ifdef CACHE int storeable = 1; @@ -165,7 +164,6 @@ int main(int argn, char **argv) { SDL_Surface *screen; int res_x = 800; int res_y = 600; - int total_res = res_x * res_y; #ifdef CACHE // Init our cached points @@ -205,8 +203,6 @@ int main(int argn, char **argv) { // Prepare the resolution and sizes and colors... int i; - int temp; - const int ITERATIONS = 256; printf("Rendering...\n"); @@ -228,7 +224,7 @@ int main(int argn, char **argv) { { max_iteration = 255; } - int col_value; + Uint32 *pixel; int rank; // Lock surface