From 95436bb5b299147b326c26aa1b78dc8549f3cfb2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 22 Nov 2009 22:12:00 +0000 Subject: (svn r18248) -Codechange: remove magic numbers from the AI debug window, making it big font aware in the process --- src/ai/ai_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: { -- cgit v1.2.3-70-g09d2