diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 22:46:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 22:46:17 +0000 |
commit | f11300d1f95afd4aef64f994aecaaa5af446bf04 (patch) | |
tree | e1ae57a53d4852b46ae40e594822c459c6ed726a /src/network/network_chat_gui.cpp | |
parent | ce513b46b7d69e2ff53982341b214da07c9a8a1e (diff) | |
download | openttd-f11300d1f95afd4aef64f994aecaaa5af446bf04.tar.xz |
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
Diffstat (limited to 'src/network/network_chat_gui.cpp')
-rw-r--r-- | src/network/network_chat_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 56ec30a3d..81ab4f30b 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -237,7 +237,7 @@ void NetworkDrawChatMessage() /* Paint the chat messages starting with the lowest at the bottom */ for (uint y = NETWORK_CHAT_LINE_HEIGHT; count-- != 0; y += NETWORK_CHAT_LINE_HEIGHT) { - DoDrawString(_chatmsg_list[count].message, _chatmsg_box.x + 3, _screen.height - _chatmsg_box.y - y + 1, _chatmsg_list[count].colour); + DrawString(_chatmsg_box.x + 3, _chatmsg_box.x + _chatmsg_box.width - 1, _screen.height - _chatmsg_box.y - y + 1, _chatmsg_list[count].message, _chatmsg_list[count].colour); } /* Make sure the data is updated next flush */ |