Fixed VC++ warnings.

This commit is contained in:
Camilla Berglund
2013-06-12 20:36:43 +02:00
parent 30b6e0c868
commit 3df0b4478b
5 changed files with 14 additions and 14 deletions

View File

@@ -339,12 +339,12 @@ void cursor_position_callback(GLFWwindow* window, double x, double y)
{
if (locked)
{
alpha += (x - cursorX) / 10.f;
beta += (y - cursorY) / 10.f;
alpha += (GLfloat) (x - cursorX) / 10.f;
beta += (GLfloat) (y - cursorY) / 10.f;
}
cursorX = x;
cursorY = y;
cursorX = (int) x;
cursorY = (int) y;
}