commit 13a4bcf0b98d32e780b2cb145f9a4bb1f7e75614
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Fri Jan 1 22:33:36 2016 +0100
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Fri Jan 1 22:33:36 2016 +0100
video: Remove CreateCursors() function.
Leftover function from previous commit removing the invisible cursor
hack.
---
src/i_video.c | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 8ea33fcf..fb78120e 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -225,10 +225,6 @@ static grabmouse_callback_t grabmouse_callback = NULL;
static boolean window_focused = true;
-// Empty mouse cursor
-
-static SDL_Cursor *cursors[2];
-
// Window resize state.
static boolean need_resize = false;
@@ -1258,21 +1254,6 @@ void I_CheckIsScreensaver(void)
}
}
-static void CreateCursors(void)
-{
- static Uint8 empty_cursor_data = 0;
-
- // Save the default cursor so it can be recalled later
-
- cursors[1] = SDL_GetCursor();
-
- // Create an empty cursor
-
- cursors[0] = SDL_CreateCursor(&empty_cursor_data,
- &empty_cursor_data,
- 1, 1, 0, 0);
-}
-
static void SetSDLVideoDriver(void)
{
// Allow a default value for the SDL video driver to be specified
@@ -1512,8 +1493,6 @@ void I_InitGraphics(void)
I_SetPalette(doompal);
SDL_SetPaletteColors(screenbuffer->format->palette, palette, 0, 256);
- CreateCursors();
-
// SDL2-TODO UpdateFocus();
UpdateGrab();