diff options
author | Vicent Marti | 2008-06-26 19:54:55 +0000 |
---|---|---|
committer | Vicent Marti | 2008-06-26 19:54:55 +0000 |
commit | 5534ce68a17aeeb0e1dff74297d85ff7af1b9f9e (patch) | |
tree | 0aec6a2467a3b1756705e7ed1e33c82b4a88030a /common/xmlparser.cpp | |
parent | 0cd183b94b7d24f9df8453ee126bceddc1dfd857 (diff) | |
download | scummvm-rg350-5534ce68a17aeeb0e1dff74297d85ff7af1b9f9e.tar.gz scummvm-rg350-5534ce68a17aeeb0e1dff74297d85ff7af1b9f9e.tar.bz2 scummvm-rg350-5534ce68a17aeeb0e1dff74297d85ff7af1b9f9e.zip |
- MILESTONE: A widget is drawn on screen loaded straight from its XML description. Yippie.
- XMLParser: Bugfixes.
- ThemeParser: Support for default color values.
svn-id: r32808
Diffstat (limited to 'common/xmlparser.cpp')
-rw-r--r-- | common/xmlparser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/xmlparser.cpp b/common/xmlparser.cpp index 22b8b22e48..8ff93a4c59 100644 --- a/common/xmlparser.cpp +++ b/common/xmlparser.cpp @@ -61,10 +61,12 @@ bool XMLParser::parserError(const char *errorString, ...) { printf("%s%s%s\n", startFull ? "" : "...", endFull ? "" : "...", lineStr); + int cursor = MIN(_pos - lineStart, 70); + if (!startFull) - lineStart -= 3; + cursor += 3; - for (int i = 0; i < _pos - lineStart; ++i) + while (cursor--) printf(" "); printf("^\n"); |