]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/penguin/lw.cpp
show the resize cursor when the mouse is above the grip and not only when it's just...
[wxWidgets.git] / samples / opengl / penguin / lw.cpp
index c2875d58875b972e45b68dbe54bdb5fad1a7b8ab..487359bbba208bf5da91161e98deb3b6d29f7ebd 100644 (file)
 #include <windows.h>
 #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 <stdlib.h>
 #include <stdio.h>
 #include <math.h>
 
-#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);
 }