Bläddra i källkod

allow compile without win2k definitions available

David Rose 24 år sedan
förälder
incheckning
e61f3d4615
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8 0
      panda/src/wgldisplay/wglGraphicsWindow.cxx

+ 8 - 0
panda/src/wgldisplay/wglGraphicsWindow.cxx

@@ -3329,15 +3329,23 @@ void set_global_parameters(void) {
   // cursor alpha blending
 
   // this is a win2k/xp only param, could use GetVersionEx to do it just for win2k
+#ifdef SPI_SETCURSORSHADOW
   SystemParametersInfo(SPI_GETCURSORSHADOW,NULL,&bCursorShadowOn,NULL);
   SystemParametersInfo(SPI_SETCURSORSHADOW,NULL,(PVOID)false,NULL);
+#endif
 
+#ifdef SPI_SETMOUSETRAILS
   SystemParametersInfo(SPI_GETMOUSETRAILS,NULL,&iMouseTrails,NULL);
   SystemParametersInfo(SPI_SETMOUSETRAILS,NULL,(PVOID)0,NULL);
+#endif
 }
 
 void restore_global_parameters(void) {
+#ifdef SPI_SETCURSORSHADOW
   SystemParametersInfo(SPI_SETCURSORSHADOW,NULL,(PVOID)bCursorShadowOn,NULL);
+#endif
+#ifdef SPI_SETMOUSETRAILS
   SystemParametersInfo(SPI_SETMOUSETRAILS,NULL,(PVOID)iMouseTrails,NULL);
+#endif
 }