mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed whitespace
This commit is contained in:
parent
412ab7e1aa
commit
b060b2eadd
@ -42,11 +42,11 @@ SDL_CalculatePitch(Uint32 format, int width)
|
|||||||
{
|
{
|
||||||
int pitch;
|
int pitch;
|
||||||
|
|
||||||
if (SDL_ISPIXELFORMAT_FOURCC(format) || SDL_BITSPERPIXEL(format) >= 8) {
|
if (SDL_ISPIXELFORMAT_FOURCC(format) || SDL_BITSPERPIXEL(format) >= 8) {
|
||||||
pitch = (width * SDL_BYTESPERPIXEL(format));
|
pitch = (width * SDL_BYTESPERPIXEL(format));
|
||||||
} else {
|
} else {
|
||||||
pitch = ((width * SDL_BITSPERPIXEL(format)) + 7) / 8;
|
pitch = ((width * SDL_BITSPERPIXEL(format)) + 7) / 8;
|
||||||
}
|
}
|
||||||
pitch = (pitch + 3) & ~3; /* 4-byte aligning for speed */
|
pitch = (pitch + 3) & ~3; /* 4-byte aligning for speed */
|
||||||
return pitch;
|
return pitch;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user