aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMatthew Hoops2015-04-11 16:07:22 -0400
committerMatthew Hoops2015-04-11 16:12:47 -0400
commit75acef75661cc4554ad0bf114d62bf553afae7ab (patch)
tree40f8a66750036a0251d893cda2544895c2d91450 /graphics
parent797506eff79126e60ec97e8377b5a6d632769564 (diff)
downloadscummvm-rg350-75acef75661cc4554ad0bf114d62bf553afae7ab.tar.gz
scummvm-rg350-75acef75661cc4554ad0bf114d62bf553afae7ab.tar.bz2
scummvm-rg350-75acef75661cc4554ad0bf114d62bf553afae7ab.zip
GRAPHICS: Force a cast to int to avoid gcc warnings
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fonts/ttf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index 7373a965c8..dc7335f1c2 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -474,11 +474,11 @@ bool TTFFont::cacheGlyph(Glyph &glyph, uint32 chr) const {
switch (bitmap.pixel_mode) {
case FT_PIXEL_MODE_MONO:
- for (uint y = 0; y < bitmap.rows; ++y) {
+ for (int y = 0; y < (int)bitmap.rows; ++y) {
const uint8 *curSrc = src;
uint8 mask = 0;
- for (uint x = 0; x < bitmap.width; ++x) {
+ for (int x = 0; x < (int)bitmap.width; ++x) {
if ((x % 8) == 0)
mask = *curSrc++;
@@ -494,7 +494,7 @@ bool TTFFont::cacheGlyph(Glyph &glyph, uint32 chr) const {
break;
case FT_PIXEL_MODE_GRAY:
- for (uint y = 0; y < bitmap.rows; ++y) {
+ for (int y = 0; y < (int)bitmap.rows; ++y) {
memcpy(dst, src, bitmap.width);
dst += glyph.image.pitch;
src += srcPitch;