Skip to content

Commit

Permalink
Fixed warnings building with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 26, 2018
1 parent bad8331 commit b79d88f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions SDL_ttf.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ static FT_Error Load_Glyph(TTF_Font* font, Uint32 ch, c_glyph* cached, int want)
if (((want & CACHED_BITMAP) && !(cached->stored & CACHED_BITMAP)) ||
((want & CACHED_PIXMAP) && !(cached->stored & CACHED_PIXMAP))) {
int mono = (want & CACHED_BITMAP);
int i;
unsigned int i;
FT_Bitmap* src;
FT_Bitmap* dst;
FT_Glyph bitmap_glyph = NULL;
Expand Down Expand Up @@ -758,7 +758,7 @@ static FT_Error Load_Glyph(TTF_Font* font, Uint32 ch, c_glyph* cached, int want)
if (mono) {
unsigned char *srcp = src->buffer + soffset;
unsigned char *dstp = dst->buffer + doffset;
int j;
unsigned int j;
if (src->pixel_mode == FT_PIXEL_MODE_MONO) {
for (j = 0; j < src->width; j += 8) {
unsigned char c = *srcp++;
Expand Down Expand Up @@ -815,7 +815,7 @@ static FT_Error Load_Glyph(TTF_Font* font, Uint32 ch, c_glyph* cached, int want)
unsigned char *srcp = src->buffer + soffset;
unsigned char *dstp = dst->buffer + doffset;
unsigned char c;
int j, k;
unsigned int j, k;
for (j = 0; j < src->width; j += 8) {
c = *srcp++;
for (k = 0; k < 8; ++k) {
Expand All @@ -831,7 +831,7 @@ static FT_Error Load_Glyph(TTF_Font* font, Uint32 ch, c_glyph* cached, int want)
unsigned char *srcp = src->buffer + soffset;
unsigned char *dstp = dst->buffer + doffset;
unsigned char c;
int j, k;
unsigned int j, k;
for (j = 0; j < src->width; j += 4) {
c = *srcp++;
for (k = 0; k < 4; ++k) {
Expand All @@ -847,7 +847,7 @@ static FT_Error Load_Glyph(TTF_Font* font, Uint32 ch, c_glyph* cached, int want)
unsigned char *srcp = src->buffer + soffset;
unsigned char *dstp = dst->buffer + doffset;
unsigned char c;
int j, k;
unsigned int j, k;
for (j = 0; j < src->width; j += 2) {
c = *srcp++;
for (k = 0; k < 2; ++k) {
Expand Down Expand Up @@ -1414,7 +1414,7 @@ SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font,
Uint8* src;
Uint8* dst;
Uint8 *dst_check;
int row, col;
unsigned int row, col;
c_glyph *glyph;

FT_Bitmap *current;
Expand Down Expand Up @@ -1582,7 +1582,7 @@ SDL_Surface *TTF_RenderUTF8_Shaded(TTF_Font *font,
Uint8* src;
Uint8* dst;
Uint8* dst_check;
int row, col;
unsigned int row, col;
FT_Bitmap* current;
c_glyph *glyph;
FT_Error error;
Expand Down Expand Up @@ -1763,7 +1763,7 @@ SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font,
Uint8 *src;
Uint32 *dst;
Uint32 *dst_check;
int row, col;
unsigned int row, col;
c_glyph *glyph;
FT_Error error;
FT_Long use_kerning;
Expand Down Expand Up @@ -1934,7 +1934,7 @@ SDL_Surface *TTF_RenderUTF8_Blended_Wrapped(TTF_Font *font,
Uint8 *src;
Uint32 *dst;
Uint32 *dst_check;
int row, col;
unsigned int row, col;
c_glyph *glyph;
FT_Error error;
FT_Long use_kerning;
Expand Down

0 comments on commit b79d88f

Please sign in to comment.