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/allegro_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/allegro_v.cpp')
-rw-r--r-- | src/video/allegro_v.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index 27b7a4448..0154cb519 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -225,11 +225,23 @@ static bool CreateMainSurface(uint w, uint h) snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision); set_window_title(caption); + enable_hardware_cursor(); + select_mouse_cursor(MOUSE_CURSOR_ARROW); + show_mouse(_allegro_screen); + GameSizeChanged(); return true; } +bool VideoDriver_Allegro::ClaimMousePointer() +{ + select_mouse_cursor(MOUSE_CURSOR_NONE); + show_mouse(_allegro_screen); + disable_hardware_cursor(); + return true; +} + struct VkMapping { uint16 vk_from; byte vk_count; |