summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-22 22:12:00 +0000
committerrubidium <rubidium@openttd.org>2009-11-22 22:12:00 +0000
commit95436bb5b299147b326c26aa1b78dc8549f3cfb2 (patch)
tree296527b5cbc958bcb5a358f2332b90938e2367b3 /src
parente4f5dddbe5fcbb2258b77e881c27845a8e53e7db (diff)
downloadopenttd-95436bb5b299147b326c26aa1b78dc8549f3cfb2.tar.xz
(svn r18248) -Codechange: remove magic numbers from the AI debug window, making it big font aware in the process
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 9636a5e45..24e785984 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -822,7 +822,7 @@ struct AIDebugWindow : public Window {
assert(info != NULL);
char name[1024];
snprintf(name, sizeof(name), "%s (v%d)", info->GetName(), info->GetVersion());
- DrawString(r.left + 7, r.right - 7, 47, name, TC_BLACK, SA_CENTER);
+ DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, name, TC_BLACK, SA_CENTER);
break;
}
case AID_WIDGET_LOG_PANEL: {