Fixed VC++ warnings.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 6a7dbfee29
commit 3897a174b5
  1. 2
      examples/simple.c
  2. 2
      src/win32_window.c
  3. 2
      tests/tearing.c

@ -69,7 +69,7 @@ int main(void)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glRotatef(glfwGetTime() * 50.f, 0.f, 0.f, 1.f);
glRotatef((float) glfwGetTime() * 50.f, 0.f, 0.f, 1.f);
glBegin(GL_TRIANGLES);
glColor3f(1.f, 0.f, 0.f);

@ -407,7 +407,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
case WM_CHAR:
{
_glfwInputChar(window, wParam);
_glfwInputChar(window, (unsigned int) wParam);
return 0;
}

@ -95,7 +95,7 @@ int main(void)
{
glClear(GL_COLOR_BUFFER_BIT);
position = cosf(glfwGetTime() * 4.f) * 0.75f;
position = cosf((float) glfwGetTime() * 4.f) * 0.75f;
glRectf(position - 0.25f, -1.f, position + 0.25f, 1.f);
glfwSwapBuffers(window);

Loading…
Cancel
Save