TRECISION: Fix one more local variable name in SDText::draw
This commit is contained in:
parent
08cb134707
commit
87294e44b7
1 changed files with 9 additions and 9 deletions
|
@ -466,11 +466,11 @@ void SDText::draw(uint16 *frameBuffer) {
|
||||||
|
|
||||||
for (uint16 a = b * CARHEI; a < (b + 1) * CARHEI; a++) {
|
for (uint16 a = b * CARHEI; a < (b + 1) * CARHEI; a++) {
|
||||||
uint16 curPos = 0;
|
uint16 curPos = 0;
|
||||||
uint16 CurColor = tmpSCol;
|
uint16 curColor = tmpSCol;
|
||||||
|
|
||||||
while (curPos <= charWidth - 1) {
|
while (curPos <= charWidth - 1) {
|
||||||
if (a >= _subtitleRect.top && a < _subtitleRect.bottom) {
|
if (a >= _subtitleRect.top && a < _subtitleRect.bottom) {
|
||||||
if (CurColor != MASKCOL && (g_vm->_font[charOffset + fontDataOffset])) {
|
if (curColor != MASKCOL && (g_vm->_font[charOffset + fontDataOffset])) {
|
||||||
const uint16 charLeft = inc + curPos;
|
const uint16 charLeft = inc + curPos;
|
||||||
const uint16 charRight = charLeft + g_vm->_font[charOffset + fontDataOffset];
|
const uint16 charRight = charLeft + g_vm->_font[charOffset + fontDataOffset];
|
||||||
uint16 *dst1 = buffer + _rect.left + charLeft + (_rect.top + a) * MAXX;
|
uint16 *dst1 = buffer + _rect.left + charLeft + (_rect.top + a) * MAXX;
|
||||||
|
@ -495,7 +495,7 @@ void SDText::draw(uint16 *frameBuffer) {
|
||||||
if (dst && size > 0) {
|
if (dst && size > 0) {
|
||||||
uint16 *d = dst;
|
uint16 *d = dst;
|
||||||
for (uint32 i = 0; i < size; i++)
|
for (uint32 i = 0; i < size; i++)
|
||||||
*d++ = CurColor;
|
*d++ = curColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -503,12 +503,12 @@ void SDText::draw(uint16 *frameBuffer) {
|
||||||
curPos += g_vm->_font[charOffset + fontDataOffset];
|
curPos += g_vm->_font[charOffset + fontDataOffset];
|
||||||
fontDataOffset++;
|
fontDataOffset++;
|
||||||
|
|
||||||
if (CurColor == tmpSCol)
|
if (curColor == tmpSCol)
|
||||||
CurColor = 0;
|
curColor = 0;
|
||||||
else if (CurColor == 0)
|
else if (curColor == 0)
|
||||||
CurColor = tmpTCol;
|
curColor = tmpTCol;
|
||||||
else if (CurColor == tmpTCol)
|
else if (curColor == tmpTCol)
|
||||||
CurColor = tmpSCol;
|
curColor = tmpSCol;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inc += charWidth;
|
inc += charWidth;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue