WAGE: More warning fixes
This commit is contained in:
parent
b28dc762df
commit
fdfb4eedcd
1 changed files with 3 additions and 3 deletions
|
@ -230,7 +230,7 @@ void Gui::appendText(String &str) {
|
||||||
// and push substrings individually
|
// and push substrings individually
|
||||||
Common::String tmp = "";
|
Common::String tmp = "";
|
||||||
|
|
||||||
for (int i = 0; i < str.size(); i++) {
|
for (uint i = 0; i < str.size(); i++) {
|
||||||
if (str[i] == '\n') {
|
if (str[i] == '\n') {
|
||||||
_out.push_back(tmp);
|
_out.push_back(tmp);
|
||||||
flowText(tmp);
|
flowText(tmp);
|
||||||
|
@ -432,7 +432,7 @@ void Gui::flowText(String &str) {
|
||||||
for (Common::StringArray::const_iterator j = wrappedLines.begin(); j != wrappedLines.end(); ++j)
|
for (Common::StringArray::const_iterator j = wrappedLines.begin(); j != wrappedLines.end(); ++j)
|
||||||
_lines.push_back(*j);
|
_lines.push_back(*j);
|
||||||
|
|
||||||
int pos = _scrollPos;
|
uint pos = _scrollPos;
|
||||||
_scrollPos = MAX<int>(0, (_lines.size() - _consoleNumLines) * _consoleLineHeight);
|
_scrollPos = MAX<int>(0, (_lines.size() - _consoleNumLines) * _consoleLineHeight);
|
||||||
|
|
||||||
_cursorX = kConWPadding;
|
_cursorX = kConWPadding;
|
||||||
|
@ -481,7 +481,7 @@ void Gui::renderConsole(Graphics::Surface *g, Common::Rect &r) {
|
||||||
if (textReflow) {
|
if (textReflow) {
|
||||||
_lines.clear();
|
_lines.clear();
|
||||||
|
|
||||||
for (int i = 0; i < _out.size(); i++)
|
for (uint i = 0; i < _out.size(); i++)
|
||||||
flowText(_out[i]);
|
flowText(_out[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue