Skip to content

Commit 0904884

Browse files
committedFeb 6, 2015
Fix warnings in CGUITTFont.cpp
1 parent 1367e8f commit 0904884

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎src/cguittfont/CGUITTFont.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ video::IImage* SGUITTGlyph::createGlyphImage(const FT_Bitmap& bits, video::IVide
8787
const u32 image_pitch = image->getPitch() / sizeof(u16);
8888
u16* image_data = (u16*)image->lock();
8989
u8* glyph_data = bits.buffer;
90-
for (u32 y = 0; y < bits.rows; ++y)
90+
for (int y = 0; y < bits.rows; ++y)
9191
{
9292
u16* row = image_data;
93-
for (u32 x = 0; x < bits.width; ++x)
93+
for (int x = 0; x < bits.width; ++x)
9494
{
9595
// Monochrome bitmaps store 8 pixels per byte. The left-most pixel is the bit 0x80.
9696
// So, we go through the data each bit at a time.
@@ -116,10 +116,10 @@ video::IImage* SGUITTGlyph::createGlyphImage(const FT_Bitmap& bits, video::IVide
116116
const u32 image_pitch = image->getPitch() / sizeof(u32);
117117
u32* image_data = (u32*)image->lock();
118118
u8* glyph_data = bits.buffer;
119-
for (u32 y = 0; y < bits.rows; ++y)
119+
for (int y = 0; y < bits.rows; ++y)
120120
{
121121
u8* row = glyph_data;
122-
for (u32 x = 0; x < bits.width; ++x)
122+
for (int x = 0; x < bits.width; ++x)
123123
{
124124
image_data[y * image_pitch + x] |= static_cast<u32>(255.0f * (static_cast<float>(*row++) / gray_count)) << 24;
125125
//data[y * image_pitch + x] |= ((u32)(*bitsdata++) << 24);

0 commit comments

Comments
 (0)