From 6e31c2f068180c16c1a7ece0f166c100bf4b4616 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 17 Nov 2011 21:09:08 +0000 Subject: (svn r23241) -Codechange: make the decision when to go to the custom drawn cursor more prominently during the initialisation of OpenTTD --- src/video/sdl_v.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/video/sdl_v.cpp') diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 8768004b6..ebb0ca757 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -259,13 +259,18 @@ static bool CreateMainSurface(uint w, uint h) snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision); SDL_CALL SDL_WM_SetCaption(caption, caption); - SDL_CALL SDL_ShowCursor(0); GameSizeChanged(); return true; } +bool VideoDriver_SDL::ClaimMousePointer() +{ + SDL_CALL SDL_ShowCursor(0); + return true; +} + struct VkMapping { uint16 vk_from; byte vk_count; -- cgit v1.2.3-54-g00ecf