summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:24 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:24 +0000
commit0baa72aff9737e17741b83c8a6d87891fb03bc0f (patch)
treecfb2f5ab859ce5cf7ebea2ef2724fe721466e213 /src/gfx.cpp
parentfd16b0c65c1b65908f20527c010a83b6e7e4cf3b (diff)
downloadopenttd-0baa72aff9737e17741b83c8a6d87891fb03bc0f.tar.xz
(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 4fed39194..3fabf0b09 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -437,9 +437,9 @@ static int DrawLayoutLine(ParagraphLayout::Line *line, int y, int left, int righ
/* Not a valid glyph (empty) */
if (glyph == 0xFFFF) continue;
- int begin_x = run->getPositions()[i * 2] + left - offset_x;
- int end_x = run->getPositions()[i * 2 + 2] + left - offset_x - 1;
- int top = run->getPositions()[i * 2 + 1] + y;
+ int begin_x = (int)run->getPositions()[i * 2] + left - offset_x;
+ int end_x = (int)run->getPositions()[i * 2 + 2] + left - offset_x - 1;
+ int top = (int)run->getPositions()[i * 2 + 1] + y;
/* Truncated away. */
if (truncation && (begin_x < min_x || end_x > max_x)) continue;