Various Windows and VC++ 2010 fixes.

This commit is contained in:
Camilla Berglund
2011-07-27 17:09:17 +02:00
parent dc345d7914
commit 4afc67c1df
9 changed files with 54 additions and 11 deletions

View File

@@ -23,6 +23,8 @@
//
//========================================================================
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
@@ -422,7 +424,7 @@ static void update_map(int num_iter)
if (fabs(pd) <= 1.0f)
{
/* tx,tz is within the circle */
GLfloat new_height = disp + (cos(pd*3.14f)*disp);
GLfloat new_height = disp + (float) (cos(pd*3.14f)*disp);
map_vertices[1][ii] += new_height;
}
}