diff options
author | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:50:55 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:50:55 +0000 |
commit | 4ed08dcd601365ef4a29b2c1d5ae45b301fc08a3 (patch) | |
tree | f123c553fef78df990c71227c7a312b1a8e8a9c3 /src | |
parent | b3ecfbb67ad7954531aa3c52210975b2d57a711d (diff) | |
download | openttd-4ed08dcd601365ef4a29b2c1d5ae45b301fc08a3.tar.xz |
(svn r25694) -Fix (r25651): Picky GCC.
Diffstat (limited to 'src')
-rw-r--r-- | src/gfx_layout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index 4d1d382d6..bcd5add36 100644 --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -554,7 +554,7 @@ Point Layouter::GetCharPosition(const char *ch) const for (int i = 0; i < run->getGlyphCount(); i++) { /* Matching glyph? Return position. */ 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; } } |