diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
commit | 062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch) | |
tree | a917e975f1f5d4c144ecad2c799cf58764a1f592 /src/video | |
parent | a2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff) | |
download | openttd-062dd0e24c283f210216ede06bbde0ed72c7ed25.tar.xz |
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/allegro_v.cpp | 6 | ||||
-rw-r--r-- | src/video/cocoa/event.mm | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index 9d9ef1f57..2739d0f31 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -318,10 +318,8 @@ static uint32 ConvertAllegroKeyIntoMy() return (key << 16) + unicode; } -enum { - LEFT_BUTTON, - RIGHT_BUTTON, -}; +static const uint LEFT_BUTTON = 0; +static const uint RIGHT_BUTTON = 1; static void PollEvent() { diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm index 284be0657..5df3f5b75 100644 --- a/src/video/cocoa/event.mm +++ b/src/video/cocoa/event.mm @@ -49,7 +49,7 @@ /* Right Mouse Button Emulation enum */ -enum { +enum RightMouseButtonEmulationState { RMBE_COMMAND, RMBE_CONTROL, RMBE_OFF, |