Fixed whitespace

This commit is contained in:
Sam Lantinga 2019-10-18 08:56:54 -07:00
parent 412ab7e1aa
commit b060b2eadd
1 changed files with 5 additions and 5 deletions

View File

@ -42,11 +42,11 @@ SDL_CalculatePitch(Uint32 format, int width)
{
int pitch;
if (SDL_ISPIXELFORMAT_FOURCC(format) || SDL_BITSPERPIXEL(format) >= 8) {
pitch = (width * SDL_BYTESPERPIXEL(format));
} else {
pitch = ((width * SDL_BITSPERPIXEL(format)) + 7) / 8;
}
if (SDL_ISPIXELFORMAT_FOURCC(format) || SDL_BITSPERPIXEL(format) >= 8) {
pitch = (width * SDL_BYTESPERPIXEL(format));
} else {
pitch = ((width * SDL_BITSPERPIXEL(format)) + 7) / 8;
}
pitch = (pitch + 3) & ~3; /* 4-byte aligning for speed */
return pitch;
}