diff options
author | rubidium <rubidium@openttd.org> | 2011-11-17 21:09:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-17 21:09:08 +0000 |
commit | 6e31c2f068180c16c1a7ece0f166c100bf4b4616 (patch) | |
tree | 95761c44f538faf74e7f65d750cca358d2cb67a7 /src/video/sdl_v.cpp | |
parent | cc85ef493af3bb9af9bbbbed4a24048bc248669f (diff) | |
download | openttd-6e31c2f068180c16c1a7ece0f166c100bf4b4616.tar.xz |
(svn r23241) -Codechange: make the decision when to go to the custom drawn cursor more prominently during the initialisation of OpenTTD
Diffstat (limited to 'src/video/sdl_v.cpp')
-rw-r--r-- | src/video/sdl_v.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; |