Rename function, as ShowCursor is a Windows function and this conflicts
with it (thanks exp(x)). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2545
This commit is contained in:
parent
9f1a64f856
commit
f5e5190c42
1 changed files with 5 additions and 5 deletions
|
|
@ -279,7 +279,7 @@ static void UpdateFocus(void)
|
|||
// Show or hide the mouse cursor. We have to use different techniques
|
||||
// depending on the OS.
|
||||
|
||||
static void ShowCursor(boolean show)
|
||||
static void SetShowCursor(boolean show)
|
||||
{
|
||||
// On Windows, using SDL_ShowCursor() adds lag to the mouse input,
|
||||
// so work around this by setting an invisible cursor instead. On
|
||||
|
|
@ -454,7 +454,7 @@ void I_ShutdownGraphics(void)
|
|||
{
|
||||
if (initialized)
|
||||
{
|
||||
ShowCursor(true);
|
||||
SetShowCursor(true);
|
||||
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
|
||||
|
|
@ -754,15 +754,15 @@ static void UpdateGrab(void)
|
|||
{
|
||||
// Hide the cursor in screensaver mode
|
||||
|
||||
ShowCursor(false);
|
||||
SetShowCursor(false);
|
||||
}
|
||||
else if (grab && !currently_grabbed)
|
||||
{
|
||||
ShowCursor(false);
|
||||
SetShowCursor(false);
|
||||
}
|
||||
else if (!grab && currently_grabbed)
|
||||
{
|
||||
ShowCursor(true);
|
||||
SetShowCursor(true);
|
||||
}
|
||||
|
||||
currently_grabbed = grab;
|
||||
|
|
|
|||
Loading…
Reference in a new issue