From 839721b92699d1aa8ec98f3cfdcc73166ccc7aee Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 15 Aug 2014 12:53:47 +0200 Subject: [PATCH] Fixed VC++ warnings. --- examples/boing.c | 4 ++-- examples/particles.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/boing.c b/examples/boing.c index c6f225fb..ec313596 100644 --- a/examples/boing.c +++ b/examples/boing.c @@ -281,8 +281,8 @@ void mouse_button_callback( GLFWwindow* window, int button, int action, int mods void cursor_position_callback( GLFWwindow* window, double x, double y ) { - cursor_x = x; - cursor_y = y; + cursor_x = (float) x; + cursor_y = (float) y; if ( override_pos ) set_ball_pos(cursor_x, cursor_y); diff --git a/examples/particles.c b/examples/particles.c index 6cf942d7..dc9e9fc8 100644 --- a/examples/particles.c +++ b/examples/particles.c @@ -30,12 +30,12 @@ #include #include -#define GLFW_INCLUDE_GLU -#include - #include #include +#define GLFW_INCLUDE_GLU +#include + // Define tokens for GL_EXT_separate_specular_color if not already defined #ifndef GL_EXT_separate_specular_color #define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8