diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 09:44:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 09:44:44 +0000 |
commit | 398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (patch) | |
tree | 54de30f4702263ee1489af162d6da840e35c0a87 /src/gfx_func.h | |
parent | 793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (diff) | |
download | openttd-398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb.tar.xz |
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r-- | src/gfx_func.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h index 0f05f39d0..1bbaefc17 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -82,10 +82,8 @@ void ScreenSizeChanged(); void GameSizeChanged(); void UndrawMouseCursor(); -enum { - /* Size of the buffer used for drawing strings. */ - DRAW_STRING_BUFFER = 2048, -}; +/** Size of the buffer used for drawing strings. */ +static const int DRAW_STRING_BUFFER = 2048; void RedrawScreenRect(int left, int top, int right, int bottom); void GfxScroll(int left, int top, int width, int height, int xo, int yo); |