GRAPHICS: Add more debug output to MacText
This commit is contained in:
parent
3dc565df26
commit
6fbb82f85b
2 changed files with 15 additions and 0 deletions
|
@ -863,8 +863,12 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo
|
||||||
ftext += '\001';
|
ftext += '\001';
|
||||||
|
|
||||||
prevPos++;
|
prevPos++;
|
||||||
|
|
||||||
|
debugCN(4, kDebugText, "%c", f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debugCN(4, kDebugText, "*");
|
||||||
|
|
||||||
ftext += Common::String::format("\001\015%c%c%c%c%c%c%c%c%c%c%c%c",
|
ftext += Common::String::format("\001\015%c%c%c%c%c%c%c%c%c%c%c%c",
|
||||||
(textCast->fontId >> 8) & 0xff, textCast->fontId & 0xff,
|
(textCast->fontId >> 8) & 0xff, textCast->fontId & 0xff,
|
||||||
textCast->textSlant & 0xff, unk3f & 0xff,
|
textCast->textSlant & 0xff, unk3f & 0xff,
|
||||||
|
@ -878,6 +882,8 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo
|
||||||
|
|
||||||
ftext += text;
|
ftext += text;
|
||||||
|
|
||||||
|
debugC(4, kDebugText, "%s", text.c_str());
|
||||||
|
|
||||||
uint16 boxShadow = (uint16)textCast->boxShadow;
|
uint16 boxShadow = (uint16)textCast->boxShadow;
|
||||||
uint16 borderSize = (uint16)textCast->borderSize;
|
uint16 borderSize = (uint16)textCast->borderSize;
|
||||||
uint16 padding = (uint16)textCast->gutterSize;
|
uint16 padding = (uint16)textCast->gutterSize;
|
||||||
|
|
|
@ -79,6 +79,15 @@ void MacText::splitString(Common::String &str) {
|
||||||
bool nextChunk = false;
|
bool nextChunk = false;
|
||||||
|
|
||||||
while (*s) {
|
while (*s) {
|
||||||
|
for (uint i = 0; i < _textLines.size(); i++) {
|
||||||
|
debugN(7, "%2d ", i);
|
||||||
|
|
||||||
|
for (uint j = 0; j < _textLines[i].chunks.size(); j++)
|
||||||
|
debugN(7, "[%d] \"%s\"", _textLines[i].chunks[j].fontId, _textLines[i].chunks[j].text.c_str());
|
||||||
|
|
||||||
|
debug(7, " --> %c %d", (*s > 0x20 ? *s : ' '), (byte)*s);
|
||||||
|
}
|
||||||
|
|
||||||
if (*s == '\001') {
|
if (*s == '\001') {
|
||||||
s++;
|
s++;
|
||||||
if (*s == '\001') {
|
if (*s == '\001') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue