summaryrefslogtreecommitdiff
path: root/src/console_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-25 01:10:24 +0000
committerrubidium <rubidium@openttd.org>2009-03-25 01:10:24 +0000
commit3e93f8adda5f23808e66a973b1dce8d7e7c24d0f (patch)
tree6a8fb50166f8edf977cbf51774333b5004a3a679 /src/console_gui.cpp
parent4a500bbcdb5c1f3b8bfe8dcc454c2d07b210bf88 (diff)
downloadopenttd-3e93f8adda5f23808e66a973b1dce8d7e7c24d0f.tar.xz
(svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways)
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r--src/console_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp
index 957d3684b..e69b17d3e 100644
--- a/src/console_gui.cpp
+++ b/src/console_gui.cpp
@@ -163,24 +163,24 @@ struct IConsoleWindow : Window
virtual void OnPaint()
{
const int max = (this->height / ICON_LINE_HEIGHT) - 1;
- const int right = this->width - 1;
+ const int right = this->width - 5;
const IConsoleLine *print = IConsoleLine::Get(IConsoleWindow::scroll);
GfxFillRect(this->left, this->top, this->width, this->height - 1, 0);
for (int i = 0; i < max && print != NULL; i++, print = print->previous) {
- DrawString(5, right, this->height - (2 + i) * ICON_LINE_HEIGHT, print->buffer, print->colour);
+ DrawString(5, right, this->height - (2 + i) * ICON_LINE_HEIGHT, print->buffer, print->colour, SA_LEFT | SA_FORCE);
}
/* If the text is longer than the window, don't show the starting ']' */
int delta = this->width - 10 - _iconsole_cmdline.width - ICON_RIGHT_BORDERWIDTH;
if (delta > 0) {
- DrawString(5, right, this->height - ICON_LINE_HEIGHT, "]", (TextColour)CC_COMMAND);
+ DrawString(5, right, this->height - ICON_LINE_HEIGHT, "]", (TextColour)CC_COMMAND, SA_LEFT | SA_FORCE);
delta = 0;
}
- DrawString(10 + delta, right, this->height - ICON_LINE_HEIGHT, _iconsole_cmdline.buf, (TextColour)CC_COMMAND);
+ DrawString(10 + delta, right, this->height - ICON_LINE_HEIGHT, _iconsole_cmdline.buf, (TextColour)CC_COMMAND, SA_LEFT | SA_FORCE);
if (_focused_window == this && _iconsole_cmdline.caret) {
- DrawString(10 + delta + _iconsole_cmdline.caretxoffs, right, this->height - ICON_LINE_HEIGHT, "_", TC_WHITE);
+ DrawString(10 + delta + _iconsole_cmdline.caretxoffs, right, this->height - ICON_LINE_HEIGHT, "_", TC_WHITE, SA_LEFT | SA_FORCE);
}
}