summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-25 23:21:58 +0000
committerrubidium <rubidium@openttd.org>2008-11-25 23:21:58 +0000
commit34ddda10099fdd3cef03ac00f93df4c7e12ea564 (patch)
treef34a31a52f51017351a1e60fbcc336f87ded98c1 /src/video
parent72124862f0cdf799da0773be8d8a0dd3da0a01bc (diff)
downloadopenttd-34ddda10099fdd3cef03ac00f93df4c7e12ea564.tar.xz
(svn r14632) -Add: support Allegro as midi backend.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/allegro_v.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp
index f69c7121e..913411e6e 100644
--- a/src/video/allegro_v.cpp
+++ b/src/video/allegro_v.cpp
@@ -376,12 +376,12 @@ static void PollEvent()
/** There are multiple modules that might be using Allegro and
* Allegro can only be initiated once. */
-int _allegro_count = 0;
+int _allegro_instance_count = 0;
const char *VideoDriver_Allegro::Start(const char * const *parm)
{
- if (_allegro_count == 0 && install_allegro(SYSTEM_AUTODETECT, &errno, NULL)) return NULL;
- _allegro_count++;
+ if (_allegro_instance_count == 0 && install_allegro(SYSTEM_AUTODETECT, &errno, NULL)) return NULL;
+ _allegro_instance_count++;
install_timer();
install_mouse();
@@ -396,7 +396,7 @@ const char *VideoDriver_Allegro::Start(const char * const *parm)
void VideoDriver_Allegro::Stop()
{
- if (--_allegro_count == 0) allegro_exit();
+ if (--_allegro_instance_count == 0) allegro_exit();
}
#if defined(UNIX) || defined(__OS2__) || defined(PSP)