mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 23:26:44 +00:00
GRAPHICS: Force a cast to int to avoid gcc warnings
This commit is contained in:
parent
797506eff7
commit
75acef7566
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user