ref: f5e5190c421c5a880ff3e6638e793b64195f4f02
parent: 9f1a64f85699aff5d400f5e50742c0e7d0eb17c4
author: Simon Howard <[email protected]>
date: Thu Dec 13 20:05:16 EST 2012
Rename function, as ShowCursor is a Windows function and this conflicts with it (thanks exp(x)). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2545
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -279,7 +279,7 @@
// 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 @@
{
if (initialized)
{
- ShowCursor(true);
+ SetShowCursor(true);
SDL_QuitSubSystem(SDL_INIT_VIDEO);
@@ -754,15 +754,15 @@
{
// 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;