diff --git a/SDL_ttf.c b/SDL_ttf.c index 053f42b3..1c19458f 100644 --- a/SDL_ttf.c +++ b/SDL_ttf.c @@ -1257,7 +1257,7 @@ static SDL_Surface* Create_Surface_Solid(int width, int height, SDL_Color fg, Ui */ void *pixels, *ptr; /* Worse case at the end of line pulling 'alignment' extra blank pixels */ - int pitch = width + alignment; + Sint64 pitch = width + alignment; pitch += alignment; pitch &= ~alignment; size = height * pitch + sizeof (void *) + alignment; @@ -1321,7 +1321,7 @@ static SDL_Surface* Create_Surface_Shaded(int width, int height, SDL_Color fg, S */ void *pixels, *ptr; /* Worse case at the end of line pulling 'alignment' extra blank pixels */ - int pitch = width + alignment; + Sint64 pitch = width + alignment; pitch += alignment; pitch &= ~alignment; size = height * pitch + sizeof (void *) + alignment; @@ -1418,7 +1418,7 @@ static SDL_Surface *Create_Surface_Blended(int width, int height, SDL_Color fg, Sint64 size; void *pixels, *ptr; /* Worse case at the end of line pulling 'alignment' extra blank pixels */ - int pitch = (width + alignment) * 4; + Sint64 pitch = (width + alignment) * 4; pitch += alignment; pitch &= ~alignment; size = height * pitch + sizeof (void *) + alignment;