Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Resolve some VC10 build warnings.

  • Loading branch information...
commit 0d97a732d7e2817a9685ad667e816a2fa3994a92 1 parent bf8b17a
@nigels-com nigels-com authored
View
2  examples/dreamtorus/src/render.cpp
@@ -70,7 +70,7 @@ static void drawAnObject()
Torus t( 0.7f, 0.2f );
int I = 30;
int J = 30;
- glColor3f( 0.8, 0.8, 0.8 );
+ glColor3f( 0.8f, 0.8f, 0.8f );
for(int j = 0; j < J / 2 - 1; j++)
{
float v0 = (j+0.0f)/(J-1.0f);
View
4 examples/dreamtorus/win32/minimal.cpp
@@ -41,7 +41,7 @@ For more information, please refer to <http://unlicense.org/>
#include <cstdlib>
using namespace std;
-LONG WINAPI
+LRESULT WINAPI
WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static PAINTSTRUCT ps;
@@ -182,5 +182,5 @@ WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst, LPSTR lpszCmdLine, int
wglDeleteContext(hRC);
DestroyWindow(hWnd);
- return msg.wParam;
+ return (int) msg.wParam;
}
Please sign in to comment.
Something went wrong with that request. Please try again.