mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
allow compile without win2k definitions available
This commit is contained in:
parent
cc92f692b8
commit
e61f3d4615
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user