Commit patch #264 - Enable cursors on Mac OS X

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6655 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-02-17 05:24:15 +00:00
parent a95f8e221a
commit c378975386
2 changed files with 12 additions and 0 deletions

View File

@ -577,8 +577,14 @@ BOOL loadRenderMode(void)
}
else
{
#ifdef WZ_OS_MAC
// Mac OS X doesn't support normal cursors
war_SetColouredCursor(true);
setWarzoneKeyNumeric("ColouredCursor", true);
#else
war_SetColouredCursor(false);
setWarzoneKeyNumeric("ColouredCursor", false);
#endif
}
if (getWarzoneKeyNumeric("trapCursor", &val))

View File

@ -83,7 +83,13 @@ void war_SetDefaultStates(void)//Sets all states
war_SetFog(false);
war_setSoundEnabled( true );
war_SetPauseOnFocusLoss(true);
#ifdef WZ_OS_MAC
war_SetColouredCursor(true); // Mac OS X doesn't support uncolored cursors
#else
// Colored cursors aren't enabled by default for other OSes
// because they carry a performance penalty
war_SetColouredCursor(false);
#endif
war_SetMusicEnabled(true);
}