From b060b2eadd0abf0d7d6ba309c10808fbcd934bc6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 18 Oct 2019 08:56:54 -0700 Subject: [PATCH] Fixed whitespace --- src/video/SDL_surface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index a575aa067..ae9fc219a 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -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; }