projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ca854
)
Fixed auto-opening of Console when adding lines that get wrapped
author
Christoph Sommer
<mail@christoph-sommer.de>
Sun, 8 Apr 2007 12:01:42 +0000
(12:01 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Sun, 8 Apr 2007 12:01:42 +0000
(12:01 +0000)
SVN-Revision: 4967
src/console.cpp
patch
|
blob
|
history
diff --git
a/src/console.cpp
b/src/console.cpp
index
fc5c1cc
..
2a7dbdc
100644
(file)
--- a/
src/console.cpp
+++ b/
src/console.cpp
@@
-329,8
+329,10
@@
Console::addLine(std::string s)
// wrap long lines
std::string overflow;
+ unsigned int line_count = 0;
do {
lines.push_front(Font::wrap_to_chars(s, 99, &overflow));
+ line_count++;
s = overflow;
} while (s.length() > 0);
@@
-342,7
+344,7
@@
Console::addLine(std::string s)
if (height < 64) {
if(height < 4)
height = 4;
- height += fontheight;
+ height += fontheight
* line_count
;
}
// reset console to full opacity