mirror of https://github.com/OpenTTD/OpenTTD
(svn r25694) -Fix (r25651): Picky GCC.
parent
b3ecfbb67a
commit
4ed08dcd60
|
@ -554,7 +554,7 @@ Point Layouter::GetCharPosition(const char *ch) const
|
||||||
for (int i = 0; i < run->getGlyphCount(); i++) {
|
for (int i = 0; i < run->getGlyphCount(); i++) {
|
||||||
/* Matching glyph? Return position. */
|
/* Matching glyph? Return position. */
|
||||||
if ((size_t)run->getGlyphToCharMap()[i] == index) {
|
if ((size_t)run->getGlyphToCharMap()[i] == index) {
|
||||||
Point p = { run->getPositions()[i * 2], run->getPositions()[i * 2 + 1] };
|
Point p = { (int)run->getPositions()[i * 2], (int)run->getPositions()[i * 2 + 1] };
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue