소스 검색

Fixed whitespace

Sam Lantinga 5 년 전
부모
커밋
b060b2eadd
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/video/SDL_surface.c

+ 5 - 5
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;
 }