Fixed warnings.
This commit is contained in:
parent
d852c88b9f
commit
32cc86aac7
3 changed files with 2 additions and 8 deletions
Binary file not shown.
|
@ -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))
|
||||
{
|
||||
|
|
6
test.c
6
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
|
||||
|
|
Loading…
Reference in a new issue