X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/594f0f5bf1355fb8d58f403d3ebacc1c1767c429..8916d00747c8e7b704ad549afcd8d0f88b6d861e:/samples/opengl/penguin/lw.cpp?ds=sidebyside diff --git a/samples/opengl/penguin/lw.cpp b/samples/opengl/penguin/lw.cpp index c2875d5887..487359bbba 100644 --- a/samples/opengl/penguin/lw.cpp +++ b/samples/opengl/penguin/lw.cpp @@ -20,19 +20,22 @@ #include #endif -#include "wx/defs.h" +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ +#pragma hdrstop +#endif + +#ifndef WX_PRECOMP +#include "wx/wx.h" +#endif #include "lw.h" #include #include #include -#if !defined(__WXMAC__) -// these must be defined in the precompiled headers under CodeWarrior -#define wxInt32 int -#define wxUint32 unsigned int -#endif - #ifndef FALSE #define FALSE 0 #endif @@ -125,9 +128,9 @@ static void read_srfs(FILE *f, int nbytes, lwObject *lwo) nbytes -= read_string(f,material->name); /* defaults */ - material->r = 0.7; - material->g = 0.7; - material->b = 0.7; + material->r = 0.7f; + material->g = 0.7f; + material->b = 0.7f; } lwo->material = (lwMaterial*) realloc(lwo->material, sizeof(lwMaterial)*lwo->material_cnt); }