mirror of
https://github.com/glfw/glfw.git
synced 2026-08-27 11:05:54 +02:00
Fixed VC++ warnings.
This commit is contained in:
@@ -113,8 +113,8 @@ int main(void)
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
glBegin(GL_LINES);
|
||||
glVertex2f(0.f, (GLfloat) window_height - cursor_y);
|
||||
glVertex2f((GLfloat) window_width, (GLfloat) window_height - cursor_y);
|
||||
glVertex2f(0.f, (GLfloat) (window_height - cursor_y));
|
||||
glVertex2f((GLfloat) window_width, (GLfloat) (window_height - cursor_y));
|
||||
glVertex2f((GLfloat) cursor_x, 0.f);
|
||||
glVertex2f((GLfloat) cursor_x, (GLfloat) window_height);
|
||||
glEnd();
|
||||
|
||||
@@ -113,7 +113,7 @@ int main(int argc, char** argv)
|
||||
int count = 0;
|
||||
GLFWwindow* window;
|
||||
|
||||
srand(time(NULL));
|
||||
srand((unsigned int) time(NULL));
|
||||
|
||||
glfwSetErrorCallback(error_callback);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user